-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
$.tmpl returns lots of <TextNode> elements #161
Comments
You would need to post a simple test case to jsfiddle, for someone to help you here. It may be your issue is an error in your code, or template, not in jquery.tmpl.... |
Yeah, sorry about that! It was not a jquery.tmpl problem. Well sort of. The problem had to do with whitespace in the template file. Once I removed that, it worked fine. |
I am getting the same issue, but I have no white spaces. In the meantime: This returns a TextNode? ${Text} ').tmpl(instance)
...and yes, instance contains a property called 'Text' (e.g. instance.Text This returns EMPTY? This returns EMPTY? |
First and foremost, each template needs a wrapper.. This is a dummy tag. Any template not contained in a script tag must be wrapped within a dummy tag. (this is probably because the resulting selectors “HTML()” method is used to return desired markup). Additionally, invalid html will cause it to return empty object. Also see http://bugs.jquery.com/ticket/7188 |
I know the project has been canceled, but it would be nice if someone who knows how could fix this problem.
The text was updated successfully, but these errors were encountered: