-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support jade.compileFile #12
Comments
Oh, and I forgot to mention, we can do options as well: var jade = require('jade');
var template = jade.compileFile(__dirname + "/template.jade", {pretty: true});
document.getElementById("my-thing").innerHTML = template({
localVar: "value",
anotherOne: "another value"
}); |
Yeah, for sure, as long as it doesn't change the Jadeify user experience. |
@domenic - I would definitely use this feature; I'm compiling templates server-side using something similar to @ForbesLindesay 's example and |
+1 |
I'm planning to land a new API in jade (pugjs/pug#1596) that I think could be really awesome for browserify. It would allow us to support something like:
The benefit of this would be that it is much closer to the sort of code that you'd expect to see on the server side. It would even allow many modules to share client side and server side code while doing jade rendering.
Would you consider supporting this?
The text was updated successfully, but these errors were encountered: