minstache icon indicating copy to clipboard operation
minstache copied to clipboard

rendering with dom nodes

Open weepy opened this issue 12 years ago • 1 comments

this is more a question than an issue. Do you think it would be possible to create a "render" function that would

  1. return a dom element

  2. accept dom nodes as paramaters

E.g it would be awesome to be able to do :

Minstache.compile("<div>{{object}}</div>")({ object: myComponent.render() })

weepy avatar Nov 08 '12 10:11 weepy

You can unescape like so {{!object}} to include DOM nodes in your template.

urban avatar Aug 07 '13 17:08 urban