2014年3月12日 星期三

Jinja Template include file

Include Files

Hello World

{% include "parts/introtext" %}



Requiring Files
{% require %} works like {% include %} but doesn't return the output.
{% require "myblocks" %}
{% require "parts/introtext" as introtext %}

Hello World

{% call "divbox", "intro", introtext %}




References :
Reuse Parts | Jinja Documentation

沒有留言:

張貼留言