Permalink
Browse files

Presun sablony layout do /views

  • Loading branch information...
JakubMrozek committed Dec 12, 2012
1 parent 10a50ed commit 3fc8dd041faee0d563e798967490b1d7bbed531f
Showing with 3 additions and 2 deletions.
  1. +1 −1 config.js
  2. +1 −1 controllers/PageController.js
  3. +1 −0 server.js
  4. 0 {public/partials → views}/layout.html
View
@@ -16,7 +16,7 @@ exports.configure = function(app) {
app.configure(function(){
app.engine('.html', require('ejs').__express);
app.set('view engine', 'html');
- app.set('views', __dirname + '/public/partials');
+ app.set('views', __dirname + '/views');
app.use(express.bodyParser());
app.use(express.methodOverride());
app.use(express.static(process.cwd() + '/public'));
@@ -2,11 +2,11 @@
/**
* Zavislosti modulu.
*/
+
var Page = require(process.cwd() + '/models/Page');
var error = require(process.cwd() + '/lib/error');
var util = require(process.cwd() + '/lib/util');
-
/**
* Nahraje stranku podle URL.
*
View
@@ -1,2 +1,3 @@
+//require('coffee-script');
var app = require('./app');
app.listen(process.env.PORT || 5000);
File renamed without changes.

0 comments on commit 3fc8dd0

Please sign in to comment.