Skip to content

Instantly share code, notes, and snippets.

@lexer
Created May 11, 2011 09:13
Show Gist options
  • Save lexer/966155 to your computer and use it in GitHub Desktop.
Save lexer/966155 to your computer and use it in GitHub Desktop.
Using Jade as Jammit javascript template
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