Open 2beers opened 13 years ago
You are using a template with no content here. Is that your goal?
yes. I know I can make a check to see if the template is empty , but I though this might be an error so I reported. I think it's more a problem of debate. To me even if the template has no content it shouldn't throw an error, it will just return ""
OK, thanks. I'll keep this open for considering adding in that support.
TODO See corresponding fix https://github.com/BorisMoore/jsrender/commit/5a579d233c9830785ffcde734c63ab2490da3b0e
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.
Firefox error console return the following error:
Error: $.tmpl("", {title: "some title"}).appendTo is not a function
I used the following code: $.tmpl("", {title:"some title"}).appendTo("#element");
If I change the template string with something else than an empty string everything works ok. $.tmpl(" ", {title:"some title"}).appendTo("#element"); // this works OK
Hope this helps