Questions tagged «nunjucks»

2
将整数转换为字符串Jinja
我有一个整数 {% set curYear = 2013 %} 在{% if %}声明中,我必须将其与一些字符串进行比较。我不能curYear在开始时设置为字符串,因为我必须在循环中将其递减。 如何转换?
122 python  jinja2  nunjucks 
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.