Created
March 14, 2011 15:16
-
-
Save jgallen23/869288 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
express = require "express" | |
app = express.createServer() | |
app.configure () -> | |
app.use express.methodOverride() | |
app.use express.bodyParser() | |
app.use app.router | |
app.set "views", "#{ __dirname }/templates" | |
app.set "view engine", "ejs" | |
app.register ".html", require "ejs" | |
app.set "view options", layout: false | |
console.log __dirname | |
app.use express.static "#{ __dirname }/public" | |
app.use express.errorHandler { dumpExceptions: true, showStack: true } | |
app.get "/", (req, res) -> | |
res.render "index.html" | |
app.listen 3000 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment