Skip to content

Commit

Permalink
initial import
Browse files Browse the repository at this point in the history
  • Loading branch information
vol4ok committed Jul 23, 2012
0 parents commit 4bab176
Show file tree
Hide file tree
Showing 9 changed files with 5,165 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
@@ -0,0 +1,2 @@
node_modules
_*
29 changes: 29 additions & 0 deletions app/app.coffee
@@ -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)

0 comments on commit 4bab176

Please sign in to comment.