flask-include、set、with
- include: include with the django similar to a block of code html directly embedded in another file html
- {% include 'html path' %}
- set: Cache a variable in html, if the variable is not set the cache with the parcel, then the global variables can be used in this html of
- {% set name='ivy' %}
- with: the definition of a code block, code block inside the variables defined only in the block which
- with the definition of variables:
- {% with name='ivy' %}
- content....
- {% endwith %}
- {% with name='ivy' %}
- with no cache variable:
- {% with %}
- content...
- {% endwith %}
- {% with %}
- with the definition of variables: