registerPartial
Register a partial template that can be rendered with {{>key}}.
Deprecated 4.15
Pass renderer functions through the ViewModel instead. See the “Calling views” section in the can-stache docs for an example.
stache.registerPartial(name, template)
Registers a template so it can be rendered with {{>name}}
.
stache.registerPartial( "item.stache", "<li>{{name}}</li>" );
const itemsTemplate = stache( "{{#each(items)}}{{>item.stache}}{{/each}}" );