express - Use of brackets bug in Swig template for node.js -
as seems swig template is not able basic stuff such having 2 conditions within brackets inside if
statement, wondering how guys deal without having duplicate code:
{% if( absence.approved , absence.rejected) or (demo.demo , demo.test) %} whatever {% endif %}
right breaks view because swig doesn't support it...
remove brackets , should work fine
{% if absence.approved , absence.rejected or demo.demo , demo.test %} whatever {% endif %}
Comments
Post a Comment