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

Popular posts from this blog

javascript - Clear button on addentry page doesn't work -

python - Error: Unresolved reference 'selenium' What is the reason? -

asp.net ajax - Jquery scroll to element just goes to top of page -