In JsRender[1] I have the custom tags {{tag data /}} to generate part of my page. According to http://borismoore.github.com/jsrender/demos/step-by-step/03_converters-and-encoding.html it is possible to use {{:value}} to render HTML from value too.
However in JsViews[2] where I need to put expressions in the data-link attribute of tag, if my conversion function generates HTML tags (say:
<div data-link="{:~conv(data)}" />
where conv generates HTML tags
function conv(data) { return '<b>' + data + '</b>'; }
), when inserted into the DOM the output is being filtered (i.e. output as "..." rather than bold). How can I disable this function in JsViews and let helper function generate markup for up-to-date data?
Thanks in advance!
[1] https://github.com/BorisMoore/jsrender
[2] https://github.com/BorisMoore/jsviews