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
I was able to render multiple partials to a single page using handlebars-helper-compose prior to [email protected].
E.g. this worked fine in my page.hbs, where src/templates/partials had multiple .hbs partials:
{{#compose cwd="src/templates/partials" src="*.hbs"}}
{{{@content}}}
{{/compose}}
I can still render the multiple partials if I revert the sub package for assemble to [email protected] (in my-project-folder/node_modules/assemble/node_modules/assemble-handlebars
@title, @basename, @filename etc all seem to work still.
I can even log out the @content markup {{log @content}}, but when trying to render it, no markup is injected.
I have deleted my main node_modules folder and reinstalled all modules (npm install), but that didn't seem to help.
Thanks for pointing this out. There might be a change in handlebars 3 that is affecting the compose helper. Do you have a repo with the failing code that we can take a look at?
The read me on test a has the most info, but in summary:
When using {{{@content}}} with handlebars-helper-compose...
Test a works where [email protected] is used.
Test b fails where [email protected] is used.
Test a and b are identical other than that.
I was able to render multiple partials to a single page using handlebars-helper-compose prior to [email protected].
E.g. this worked fine in my page.hbs, where src/templates/partials had multiple .hbs partials:
{{#compose cwd="src/templates/partials" src="*.hbs"}}
{{{@content}}}
{{/compose}}
I can still render the multiple partials if I revert the sub package for assemble to [email protected] (in my-project-folder/node_modules/assemble/node_modules/assemble-handlebars
@title, @basename, @filename etc all seem to work still.
I can even log out the @content markup {{log @content}}, but when trying to render it, no markup is injected.
I have deleted my main node_modules folder and reinstalled all modules (npm install), but that didn't seem to help.
Version info:
{{{@content}}} works with:
[email protected], [email protected] and [email protected].
Not working as expected (for me) with:
[email protected], [email protected] and [email protected].
Node: v0.10.20
Is there a slightly different way of using the compose helper since the latest update to assemble-handlebars?
Or, if you can't reproduce, could you offer suggestions?
(apologies if this should be logged on the handlebars-helper-compose project, but there didn't seem to be any changes to that code base recently)
Thanks
The text was updated successfully, but these errors were encountered: