Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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

{% highlight html %}
  <div>{{"{{code"}}}}</div>
{% endhighlight %}

It's fugly. Is there an easier way to do this?

like image 402
bcardarella Avatar asked Jan 08 '13 07:01

bcardarella


1 Answers

I found the answer:

{% highlight html %}
{% raw %}
  <div>{{code}}</div>
{% endraw %}
{% endhighlight %}
like image 82
bcardarella Avatar answered Oct 05 '22 10:10

bcardarella