Skip to content

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

Description

@catamphetamine

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 >

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions