antonmedv / monkberry

Monkberry is a JavaScript library for building web user interfaces
https://monkberry.js.org
MIT License
1.49k stars 78 forks source link

Support of global variables in if statement #49

Open dmitrya1979 opened 6 years ago

dmitrya1979 commented 6 years ago

Hello,

I specified global variable in monkberry-loader settings, I can print this variable in template expression like {{myGlobalVar.param1}}

however {% if myGlobalVar.param1 %} throws compilation error...

antonmedv commented 6 years ago

Looks like a bug. Will fix it in next release. See next branch.