【发布时间】:2014-03-31 17:12:33
【问题描述】:
有没有办法将 cmets(单行和多行)放在 ECO templates 中,这样它们就不会出现在渲染输出中?
例如,Django 模板允许您在 single line 上执行此操作:
{# greeting #}hello
<p>Rendered text with {{ pub_date|date:"c" }}</p>
{% comment %}
<p>Commented out text with {{ create_date|date:"c" }}</p>
{% endcomment %}
【问题讨论】:
标签: coffeescript eco