Length of string in Jinja/Flask

You can use the length filter:

{% if some_var|length > 1 %}