Is it possible to defined nested templates in Handlebars:
<script id="template-parent" type="text/x-handlebars-template">
<some markup here ...>
<script id="template-child" type="text/x-handlebars-template">
<some markup from nested template here ... >
</script>
</script>
Handlebars has a built-in helper called "partials" that will allow you to include a fragment of a template from elsewhere. See https://handlebarsjs.com/guide/partials.html
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With