1
gaicitadie 2014-04-02 15:20:36 +08:00
{% block content %}
{% with 'myvar' as expectedVarName %} {{block.super}} {% endwith %} {% endblock content %} 转自: http://stackoverflow.com/questions/1893579/django-passing-argument-to-parent-template |
2
xiaket 2014-04-02 15:32:57 +08:00
content作为一个列表传递进来, 模板里一个for来轮流取轮流渲染.
|