jquery-tmpl
jquery-tmpl copied to clipboard
Cannot render HTML
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.
Let me know if you need any more information if it will help you reproduce this error.
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
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.