Browse files

Fixes #17: Pretty-print Jade-generated HTML

  • Loading branch information...
1 parent fab1c4d commit 35bf91edae9bd6b98a18dc0008d899064cc9c827 Alex Young committed Nov 23, 2011
Showing with 6 additions and 1 deletion.
  1. +6 −1 app.js
View
7 app.js
@@ -23,7 +23,6 @@ function renderJadeFile(template, options) {
return fn(options.locals);
}
-
emails = {
send: function(template, mailOptions, templateOptions) {
mailOptions.to = mailOptions.to;
@@ -66,10 +65,16 @@ app.dynamicHelpers(require('./helpers.js').dynamicHelpers);
app.configure('development', function() {
app.set('db-uri', 'mongodb://localhost/nodepad-development');
app.use(express.errorHandler({ dumpExceptions: true }));
+ app.set('view options', {
+ pretty: true
+ });
});
app.configure('test', function() {
app.set('db-uri', 'mongodb://localhost/nodepad-test');
+ app.set('view options', {
+ pretty: true
+ });
});
app.configure('production', function() {

0 comments on commit 35bf91e

Please sign in to comment.