我正在尝试将变量传递给子模板:
{% block footer %}
{% include '_footer.html' with var="foo" %}
{% endblock footer %}
但我收到 django 错误:
Exception Type: TemplateSyntaxError at /
Exception Value: expected token 'end of statement block', got 'with'
我究竟做错了什么?
隔江千里
相关分类