Open marlun78 opened 13 years ago
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? $('
...and yes, instance contains a property called 'Text' (e.g. instance.Text )
This returns EMPTY? $("
").tmpl(instance)This returns EMPTY? $('
').tmpl({})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. For example, putting a td tag inside a div.
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.