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

Popular posts from this blog

matlab - "Contour not rendered for non-finite ZData" -

delphi - Indy UDP Read Contents of Adata -

javascript - Any ideas when Firefox is likely to implement lengthAdjust and textLength? -