Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fixed template to work with coffeekup
  • Loading branch information
Tom Wilson committed May 14, 2011
1 parent 4e13241 commit 366f2b8
Show file tree
Hide file tree
Showing 51 changed files with 109 additions and 7,815 deletions.
20 changes: 20 additions & 0 deletions LICENSE
@@ -0,0 +1,20 @@
Copyright (c) 2011 Tom Wilson

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
46 changes: 12 additions & 34 deletions app.coffee
@@ -1,38 +1,16 @@
express = require('express')
app = express.createServer()

require("express")
# Setup Template Engine
app.register '.coffee', require('coffeekup')
app.set 'view engine', 'coffee'

app = express.createServer()
# Setup Static Files
app.use express.static(__dirname + '/public')

app
.get '/', (req, resp) ->
resp.send 'hello'
#
# .register('.haml', require('hamljs'))
# .get '/', (req, resp) ->
# @render 'index.html.haml'
#
#
# .get '/*.js', (file) ->
# try
# @render "${file}.js.coffee", { layout: false }
# catch e
# @pass "/${file}.js"
#
# .get '/*.css', (file) ->
# try
# @render "${file}.css.sass", { layout: false }
# catch e
# @pass "/${file}.css"
#
# .get '/*', (file) ->
# try
# @render "${file}.html.haml"
# catch e
# throw e if e.errno != 2
# @pass "/${file}"
#
# .get '/*', (file) ->
# @pass "/public/${file}"
#
server = app.listen(parseInt(process.env.PORT || 8000), null)
# App Routes
app.get '/', (request, response) ->
response.render 'index'

# Listen
app.listen 3000
774 changes: 0 additions & 774 deletions npm-debug.log

This file was deleted.

92 changes: 0 additions & 92 deletions public/javascripts/Math.uuid.js

This file was deleted.

58 changes: 0 additions & 58 deletions public/javascripts/pretty_date.js

This file was deleted.

3 changes: 0 additions & 3 deletions public/javascripts/socket.io/.gitmodules

This file was deleted.

0 comments on commit 366f2b8

Please sign in to comment.