-
-
Notifications
You must be signed in to change notification settings - Fork 384
Open
Description
Is there a way to precompile a partial that includes partials?
example:
<script>
{{precompile "application/templates/html/partial-one"}}
</script>
if partial-one.hbs includes something like this:
<div class="test">
{{> application/templates/html/partial-test-one}}
{{> application/templates/html/partial-test-two}}
</div>
the precompiled snippet will fail if i try to load data into it like this:
const template = Handlebars.templates['application/templates/html/partial-one'];
template(data);
It will complain about missing partial-test-one / partial-test-two.
All of this makes sense... But is there a way to force the precompile to also precompile all included child partials?
Maybe the easiest way is to create a new helper and register it or even extend existing one?!
Metadata
Metadata
Assignees
Labels
No labels