Answers for "how to extends html files in jinja template engine"

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
1

jinja2 template import html with as

{% from 'forms.html' import input with context %}
{% include 'header.html' without context %}
Posted by: Guest on April-03-2020

Code answers related to "how to extends html files in jinja template engine"

Browse Popular Code Answers by Language