Skip to content

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

@catamphetamine

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 >

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