Created
May 10, 2016 09:29
-
-
Save janwirth/c3b0b84e540dbb32a8b942be14fb47c9 to your computer and use it in GitHub Desktop.
Inspect mixin for jade
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
// inspect an object | |
mixin inspect(data, indentDepth) | |
- indentDepth = typeof indentDepth != "undefined" ? indentDepth : 2 // default indentDepth = 2 | |
pre=JSON.stringify(data, null, indentDepth) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment