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 -

c# - Selenium Authentication Popup preventing driver close or quit -

tensorflow when input_data MNIST_data , zlib.error: Error -3 while decompressing: invalid block type -