Outputting Literal curly braces in Liquid templates

后端 未结 4 593
南旧
南旧 2021-02-05 02:40

I\'m trying to output the following from within a liquid template:

{{ example }}

Obviously, Liquid sees this as a variable named example<

4条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-02-05 03:01

    You can also use raw:

    {% raw %}
    
    ...lots of liquid code goes here and it doesn't get interpreted...
    
    {% endraw %}
    

提交回复
热议问题