swig include使用方法

  

1 {% block content2 %}
2 {% include "footer.html" %}
3 {% endblock %}

include语句必须放到 block模块中,不然不起作用,

还有一种情况,在layout.html中不用放入block模块中,也能起作用,

posted @ 2016-01-08 10:46  挥刀  阅读(526)  评论(0编辑  收藏  举报