We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi there, Could you add an example of how to use this inside a twig file and how the syntax is to pass the variables to the file?
At the moment I do this inside the twig file to include other twig files:
{% include '@prototype/partials/layout/l-landing-page.html.twig' with { 'variable' : value } %}
But would like to do include also some hbs files like this:
{% handlebars '@prototype/partials/layout/l-landing-page.hbs' with { 'variable' : value } %}
Thanks, Sascha
The text was updated successfully, but these errors were encountered:
Hi @landwire
Sure thing. After registering your templates as described here you should be able to use them in your Twig files as follows:
{% handlebars('l-landing-page.hbs', { 'variable' : value }) %}
Can you give it a try?
Moreno
Sorry, something went wrong.
No branches or pull requests
Hi there,
Could you add an example of how to use this inside a twig file and how the syntax is to pass the variables to the file?
At the moment I do this inside the twig file to include other twig files:
{% include '@prototype/partials/layout/l-landing-page.html.twig' with { 'variable' : value } %}
But would like to do include also some hbs files like this:
{% handlebars '@prototype/partials/layout/l-landing-page.hbs' with { 'variable' : value } %}
Thanks,
Sascha
The text was updated successfully, but these errors were encountered: