jquery-tmpl icon indicating copy to clipboard operation
jquery-tmpl copied to clipboard

Cannot render HTML

Open tyson-benson opened this issue 14 years ago • 3 comments

I cannot seem to render HTML from my templates using the {{html value}} token. I have run google chrome dev tools to show me the line of code where i am receiving an exception. On line 493 of jquery.tmpl.js: pntItem.nodes comes up as undefined. When tmplItem is assigned to pntItem on line 486, pntItem does not become an exact copy of tmplItem. As can be seen in this screenshot (see the watch expressions to the right).

http://screencast.com/t/QBDZgieVOa

I dont get the error if I use ${value} instead, but i do end up printing the html as text in the page, which is undesirable.

tyson-benson avatar Aug 24 '11 04:08 tyson-benson

Let me know if you need any more information if it will help you reproduce this error.

tyson-benson avatar Aug 24 '11 04:08 tyson-benson

I'd need to have a small test case on jsfiddle showing the problem. Did you look at the samples using {{html}}? -https://github.com/jquery/jquery-tmpl/blob/master/demos/step-by-step/0_tmpl-read-only/2_html-tag.html

BorisMoore avatar Sep 07 '11 00:09 BorisMoore

Thanks for taking the time to submit this issue. Just wanted to let you know this plugin is no longer being actively developed or maintained by the jQuery team. See README for more info.

rdworth avatar Oct 08 '11 06:10 rdworth