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

前端 未结 1 1463
一整个雨季
一整个雨季 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 %}
      <div>{{code}}</div>
    {% endraw %}
    {% endhighlight %}
    
    0 讨论(0)
提交回复
热议问题