Skip to content

Named Partials render string result in stringOnly state

Compare
Choose a tag to compare
@cherifGsoul cherifGsoul released this 14 Aug 18:57
· 51 commits to master since this release

This fixes named partials to render string of DocumentFragment in stringOnly state, for example:

var view = stache( 
    '{{<addressView}}.someClass { color: #000; }{{/addressView}}' +
    '<style>{{addressView()}}</style>'
);

var fragment = view();
console.log(fragment.firstChild.innerHTML); // <style>.someClass { color: #000; }</style>

#715