Last active
February 20, 2017 05:55
-
-
Save etoxin/c28a17697a9a2ab78e2355306add8b67 to your computer and use it in GitHub Desktop.
Handlebars KeystoneJS Debug helper
This file contains hidden or 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 KeystoneJS Debug helper | |
* @param optionalValue | |
*/ | |
_helpers.debug = function(optionalValue) { | |
console.log("Current Context"); | |
console.log("===================="); | |
console.log(this); | |
if (optionalValue) { | |
console.log("Value"); | |
console.log("===================="); | |
console.log(optionalValue); | |
} | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment