Skip to content
New issue

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

Send array or object to json helper #123

Closed
ovsokolov opened this issue Sep 11, 2017 · 1 comment
Closed

Send array or object to json helper #123

ovsokolov opened this issue Sep 11, 2017 · 1 comment

Comments

@ovsokolov
Copy link

How we can send array or object of object availble in context

Need to do something like {{json [object1, obect2}}
or

{{json {'object1':object1, 'object2':object2} }}

@mcampa
Copy link
Contributor

mcampa commented Sep 12, 2017

The json helper is just JSON.stringify() method call.

I don't think you can construct objects like your example in handlebars. For more info http://handlebarsjs.com/

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants