Permalink
Browse files

Merge branch 'develop' of github.com:jeffsu/mochiscript into develop

  • Loading branch information...
2 parents 8b7ad36 + ef1a1f3 commit cd869dfd6a97b40c0248cb9756fe712ffa615830 @jeffsu committed Oct 19, 2012
Showing with 6 additions and 3 deletions.
  1. +5 −2 examples/express/app.js
  2. +1 −1 examples/express/package.json
View
@@ -13,7 +13,7 @@ var express = require('express')
var app = express();
app.configure(function(){
- app.set('port', process.env.PORT || 3000);
+ app.set('port', process.env.PORT || 3001);
app.set('views', __dirname + '/views');
app.set('view engine', 'jade');
app.use(express.favicon());
@@ -26,7 +26,10 @@ app.configure(function(){
app.configure('development', function(){
app.use(express.errorHandler());
- app.use(mochiscript.middleware({ src: "views" }));
+ app.use(mochiscript.middleware({
+ src: path.join(__dirname, "public", "javascripts"),
+ prefix: "javascripts"
+ }));
});
app.configure('production', function() {
@@ -6,7 +6,7 @@
"start": "node app"
},
"dependencies": {
- "mochiscript": "0.6.12",
+ "mochiscript": "0.6.14",
"express": "3.0.0rc2",
"jade": "*"
}

0 comments on commit cd869df

Please sign in to comment.