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
Hello, is there a way to execute javascript inside the template ? I'm used EJS before and I'm new to HBS , in EJS I can easily use
<% var foo = 'bar'; %> then inserting it easily <%= foo %>
is there any feature to do this with Handlebars something like that {{code}} var foo = 'bar'; {{/code}} then {{foo}}
The text was updated successfully, but these errors were encountered:
The language was explicitly designed to avoid this. If you need anything with side effects then you'll need to design your own system with helpers.
Sorry, something went wrong.
No branches or pull requests
Hello,
is there a way to execute javascript inside the template ?
I'm used EJS before and I'm new to HBS , in EJS I can easily use
<% var foo = 'bar'; %>
then inserting it easily
<%= foo %>
is there any feature to do this with Handlebars something like that
{{code}}
var foo = 'bar';
{{/code}}
then
{{foo}}
The text was updated successfully, but these errors were encountered: