support `jade -c --out templates.js templates` #544

Closed
wants to merge 3 commits into
from

Conversation

Projects
None yet
3 participants
Contributor

guileen commented Mar 19, 2012

add command to compile all jade to one javscript file

 jade -c --out templates.js templates

templates.js

 jade.templates['/hello.jade'] = function(locals) { // compiled template code }
 jade.templates['/bar.jade'] = function(locals){ // compiled template code }
Owner

ForbesLindesay commented Jan 10, 2013

The client option returns a function that you can call to-string on, so changing that API would need to be a separate pull request. As for changing the command prompt options I'm not sure I see enormous added value. It's up to @visionmedia and he can re-open this if he feels that this option would be useful.

Contributor

slang800 commented Jan 10, 2013

a lot of tools like roots or nodefront can deal with this... it doesn't seem like this needs to be a part of the jade core

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment