How to render Handlebars markup from a Liquid template (Jekyll)

前端 未结 1 1478
一整个雨季
一整个雨季 2021-02-19 17:24

I am using Jekyll for our blog and rendering Handlebars templates is a pain. We have to escape like so:

{% highlight html %}
  
{{\"{{code\"}}}}
1条回答
  •  鱼传尺愫
    2021-02-19 17:49

    I found the answer:

    {% highlight html %}
    {% raw %}
      
    {{code}}
    {% endraw %} {% endhighlight %}

    0 讨论(0)
提交回复
热议问题