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