I am trying to create a simple dynamic page in Business Catalyst using Mustache templates. Mustache syntax conflicts with the liquid markup syntax, but BC provides no documentation - absolutely none - for how to disable Liquid, or insert literal curly braces on the page.
I do not want to load the Mustache templates from separate files via ajax for performance reasons, and would much prefer to have them all be inline.
答案 0 :(得分:1)
Theo的答案有效,但在整个网站范围内。要在所选文件的(部分)内抑制Liquid Markup解析,请使用{% raw -%}...{% endraw -%}
语法。 BC不会尝试修改这些标签中的任何Liquid语法。
答案 1 :(得分:0)
BC中的液体标记仍然是可选的测试版功能,您可以在网站设置>下禁用此功能。取消选中启用液体标记的Beta功能。