handlebars.js - Handlebarjs changes to rendering -
i'm looking way dissolve {{ > partial }} tags only. without dissolving other template tags. right way this? there way?
handlebar template includes partial
<div> {{ > partial }} {{ somevariable }} {{#if @first}} first! {{/if}} </div>
this partial includes partial
<div> {{ partialvariable }} {{#each array}} {{@root.foo}} {{ > partial__02 }} {{/each}} </div>
nested partial
<div> {{ variable }} </div>
expected result
<div> <div> {{ partialvariable }} {{#each array}} {{@root.foo}} <div> {{ variable }} </div> {{/each}} </div> {{ somevariable }} {{#if @first}} first! {{/if}} </div>
Comments
Post a Comment