Skip to content

Instantly share code, notes, and snippets.

@alexbaulch
Created December 2, 2015 12:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save alexbaulch/ce6b87146fdae912d5e9 to your computer and use it in GitHub Desktop.
Save alexbaulch/ce6b87146fdae912d5e9 to your computer and use it in GitHub Desktop.
Return a JSON.stringify of the object you parse in.
/**
* Created by abaulch on 02/12/15.
*/
Handlebars.registerHelper('json', function(obj) {
return JSON.stringify(obj);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment