【问题标题】:literal {{something}} in django templates [duplicate]django模板中的文字{{something}} [重复]
【发布时间】:2011-09-03 04:12:46
【问题描述】:

可能重复:
How to put braces in django templates?

我如何编写 {{ something }} 而不被 django 模板系统解析。我正在尝试使 addthis 模板工作,它们使用相同的 {{..}}。

【问题讨论】:

    标签: django django-templates


    【解决方案1】:

    {% templatetag openvariable %} something {% templatetag closevariable %}

    【讨论】:

      猜你喜欢
      • 2012-10-01
      • 2013-07-24
      • 2018-01-27
      • 1970-01-01
      • 1970-01-01
      • 2014-03-13
      • 2016-12-02
      • 2010-12-26
      • 2014-05-02
      相关资源
      最近更新 更多