2014年7月14日 星期一

Convert integer to string in Jinja

{{ 12345678|string }}
{{ 1111|int }}
  
{% if 1111 == '1111' %}
    1111
{% else %}
    2222
{% endif %}




References :
python - Convert integer to string Jinja - Stack Overflow

沒有留言:

張貼留言