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
Hi, I am using express4.x with hbs as a view engine.
I am trying to register it via helper, but I am not getting any data. Should I be sending it somehow by the express?
This is my code for registering helper.
hbs.registerHelper('purchaseObject', function (context, Options) { return context.fn(jsonEnObject)});
I am just trying to get the data in the desired partial and it returns nothing.
<script>alert({{ jsonEnObject}})</script>
Thank you for any help or directions.
The text was updated successfully, but these errors were encountered:
Hi @jiriToman this module is just a wrapper for the handlebars.js project for Express.js . Your question is generically about handlbars, and one I don't know off-hand. I would ask over on the handlbars.js project (https://github.com/handlebars-lang/handlebars.js).
Hi, I am using express4.x with hbs as a view engine.
I am trying to register it via helper, but I am not getting any data. Should I be sending it somehow by the express?
This is my code for registering helper.
hbs.registerHelper('purchaseObject', function (context, Options) { return context.fn(jsonEnObject)});
I am just trying to get the data in the desired partial and it returns nothing.
<script>alert({{ jsonEnObject}})</script>
Thank you for any help or directions.
The text was updated successfully, but these errors were encountered: