You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a couple of unexpected behaviors in the :if plugin.
:if foo
%p This
:else
%p That
would be a great feature. I understand if it's difficult to implement this in the current parsing logic.
Also :if foo will yield an error if foo is not defined on the object. You need to type something like :if typeof foo != 'undefined' now which is kind of meh.
Thanks for a great template engine.
The text was updated successfully, but these errors were encountered:
I encountered a couple of unexpected behaviors in the
:if
plugin.would be a great feature. I understand if it's difficult to implement this in the current parsing logic.
Also
:if foo
will yield an error iffoo
is not defined on the object. You need to type something like:if typeof foo != 'undefined'
now which is kind of meh.Thanks for a great template engine.
The text was updated successfully, but these errors were encountered: