paularmstrong/swig — pull request #155 by fbardelli (2012-12-06 21:58:36+00:00)
Title: Support for modulus operator in swig

If statements will now support either '%' or 'mod'

{% set foo = 4 %}
{% if foo mod 2 == 0 %}hi!{% endif %}

Prints "hi!"

{% set foo = 5 %}
{% if foo mod 2 == 0 %}hi!{% endif %}

Prints nothing