Skip to content
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

Nesting <a> tags in subtemplates causes fatal error #162

Open
catamphetamine opened this issue Jan 12, 2012 · 0 comments
Open

Nesting <a> tags in subtemplates causes fatal error #162

catamphetamine opened this issue Jan 12, 2012 · 0 comments

Comments

@catamphetamine
Copy link

If you create a "template", for example, like this:
<a style="display: block">{{tmpl "subtemplate"}}</a>

And the nested "subtemplate" like this:
<div><a>some link</a></div>

Then the $.tmpl("template", data) function throws fatal error: "Cannot call method 'push' of undefined".

  • The github comment parser is a piece of some nasty substance. i'll figure out how to insert html tags, without them being displayed as html, in a moment.
  • Found a way to do that: using html escape characters for < and >
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant