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.
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.