Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
vol4ok
committed
Jul 23, 2012
0 parents
commit 4bab176
Showing
9 changed files
with
5,165 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
node_modules | ||
_* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
require "colors" | ||
$ = {} | ||
$ extends require 'fs' | ||
$ extends require 'util' | ||
$ extends require 'path' | ||
express = require 'express' | ||
|
||
app = express() | ||
|
||
app.set('view engine', 'html') | ||
app.set('layout', 'layout') | ||
app.set('partials', head: "head") | ||
#app.enable('view cache') | ||
|
||
app.engine 'html', require('hogan-express') | ||
|
||
|
||
app.set('views', __dirname + '/views') | ||
|
||
app.use(express.bodyParser()) | ||
app.use(app.router) | ||
app.use(express.static(__dirname + '/../public')) | ||
|
||
app.get '/', (req,res)-> | ||
res.locals = what: 'World' | ||
res.render "index", partials: {temp: 'temp'} | ||
|
||
|
||
app.listen(3000) |
Oops, something went wrong.