Skip to content

Instantly share code, notes, and snippets.

@radjivF
Created February 16, 2016 23:13
Show Gist options
  • Save radjivF/c83c1159802376fddcca to your computer and use it in GitHub Desktop.
Save radjivF/c83c1159802376fddcca to your computer and use it in GitHub Desktop.
handlebars.registerHelper 'json', (context) ->
JSON.stringify context
handlebars.registerHelper 'debug', (value) ->
console.log 'Current Context'
console.log '===================='
console.log this
if value
console.log 'Value'
console.log '===================='
console.log value
return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment