You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It's not clear how templates precompiled in this manner should be loaded or rendered. The docs say:
If using the simple mode the precompiler will generate a single javascript method. To execute this method it must be passed to the Handlebars.template method and the resulting object may be used as normal.
But this file does not contain a single method. Should I be passing templateObj.main to the Handlebars.template method and ignoring the other object properties? An example would really help here.
The text was updated successfully, but these errors were encountered:
Using the
--simple
precompilation flag outputs an object with amain
function like this:It's not clear how templates precompiled in this manner should be loaded or rendered. The docs say:
But this file does not contain a single method. Should I be passing
templateObj.main
to theHandlebars.template
method and ignoring the other object properties? An example would really help here.The text was updated successfully, but these errors were encountered: