【发布时间】:2015-02-16 22:06:56
【问题描述】:
快速提问。 我有一个在 php 中以 mustache 呈现的模板。 但它包括要在客户端浏览器中以 ICH 呈现的部分。
我不知道如何在 php 中告诉 mustache 不要渲染我想传递给 ICH 的 {{var}}。
IE 我想在 html 源代码中查看 {{variable}} 以便 ICH 可以获取它。
我如何逃脱 {{ 让它通过 php 小胡子?
示例:
<script id="user" type="text/html">
\{\{name\}\} {{twitter}} {{{twitter}}}
</script>
但在我的 html 中它变成了
<script id="user" type="text/html">
\{\{name\}\}
</script>
【问题讨论】:
标签: mustache icanhaz.js