Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% set min = 0 %}
- {% for x in range(0,4) %}
- {% if(pagination.current-x > 0) %}
- {% set min = (pagination.current-x) %}
- {% endif %}
- {% endfor %}
- {{ min }}
- {% set min = 10%}
- {% for x in range(10) %}
- {% if x %2 == 0 %}
- {% print 'meow' %}
- {% endif %}
- {% endfor %}
- {{ min }}
- meow meow meow meow meow 10
- {% set min = {'a':'bow'} %}
- {% for x in range(10) %}
- {% if x %2 == 0 %}
- {% do min.update({'a':'meow'}) %}
- {% print min %}
- {% endif %}
- {% endfor %}
- {{ min['a'] }}
- env = Environment(extensions=["jinja2.ext.do",])
Add Comment
Please, Sign In to add comment