Created
November 19, 2014 13:52
-
-
Save carloscortegagna/56b32a63aad04d9b096e to your computer and use it in GitHub Desktop.
Handlebars debug helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Handlebars.registerHelper('debugger', function(optionalValue) { | |
console.log('Current Context'); | |
console.log('===================='); | |
console.log(this); | |
if (optionalValue) { | |
console.log('Value'); | |
console.log('===================='); | |
console.log(optionalValue); | |
} | |
debugger; | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment