Some way to expose template subfragments inline
issa-tseng opened this issue · 0 comments
issa-tseng commented
so for example something like:
const view = DomView.build($(…), template(
find('div').text(…),
find('span').render(…),
template('reusable',
find('h2').classed(…),
find('h3').classed(…)
)
)
view.template.reusable // => yields a template() instance
the plumbing to make this work escapes me at the moment due to the opacity of the template/find signature and the fact that the exposure should be happening up-one-level.
it'll come to me.