So I can't use python len() for a list in the templates like below.
{% if len(alist) == 0 %}
UndefinedError: 'len' is undefined
How can we use python in the templates?
Is passing a param to the template in the def get(self) method the only way to do this?
Anyone know some good resources on how to use jinja2 with it comes to templating? like what methods can you use and the syntactic difference between python and jinja2.