Created
May 11, 2011 09:13
-
-
Save lexer/966155 to your computer and use it in GitHub Desktop.
Using Jade as Jammit javascript template
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
var Jade = {}; | |
Jade.template = function(templateString) { | |
var jade = require('jade'); | |
return function() { | |
return jade.render(templateString, { | |
locals: arguments[0] | |
}); | |
}; | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment