Way to disable liquid rendering or insert literal curly braces in a Business Catalyst page or content holder?

时间:2015-09-14 15:35:59

标签: liquid business-catalyst

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.

2 个答案:

答案 0 :(得分:1)

Theo的答案有效,但在整个网站范围内。要在所选文件的(部分)内抑制Liquid Markup解析,请使用{% raw -%}...{% endraw -%}语法。 BC不会尝试修改这些标签中的任何Liquid语法。

这是在http://docs.businesscatalyst.com/dev-assets/reference#!/liquid-reference/reference/logic-tags.html!raw

的官方文档中

答案 1 :(得分:0)

BC中的液体标记仍然是可选的测试版功能,您可以在网站设置>下禁用此功能。取消选中启用液体标记的Beta功能。