如何在jinja2模板中获取列表中的元素数?
例如,在Python中:
print(template.render(products=[???]))
在金甲2号
<span>You have {{what goes here?}} products</span>
如何在jinja2模板中获取列表中的元素数?
例如,在Python中:
print(template.render(products=[???]))
在金甲2号
<span>You have {{what goes here?}} products</span>