Search code examples
liquidbusiness-catalyst

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


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.


Solution

  • Theo's answer works, but is site-wide. To suppress Liquid Markup parsing just within (parts of) selected files, use the {% raw -%}...{% endraw -%} syntax. BC will not attempt to modify any Liquid syntax within those tags.

    This is in the official documentation at: http://docs.businesscatalyst.com/dev-assets/reference#!/liquid-reference/reference/logic-tags.html!raw