twitter / hogan.js

A compiler for the Mustache templating language
http://twitter.github.io/hogan.js
Apache License 2.0
5.14k stars 431 forks source link

How to render html from variable #269

Closed jihin closed 3 years ago

jihin commented 4 years ago

How to render html from variable, I need to render html string. Example

hogan.compile("<div>{{html}}</div>").render({html:"<div>test</div>"})

This rendering as string. not coverting to html

sayrer commented 3 years ago

You want {{{ ... }}}, but I don't recommend using that.