Answers for "flask set variable"

1

how to declare and retrieve variable in jinja template

{% with my_variable="my value" %}
{{my_variable}}
{% endwith %}

{# or #}

{% firstof "my value" as my_variable %}
{{my_variable}}
Posted by: Guest on June-18-2020

Browse Popular Code Answers by Language