Skip to content

Commit

Permalink
Renamed view templates
Browse files Browse the repository at this point in the history
  • Loading branch information
fairchild committed Feb 6, 2012
1 parent 865f3e6 commit acdcf47
Show file tree
Hide file tree
Showing 4 changed files with 20 additions and 3 deletions.
23 changes: 20 additions & 3 deletions app.coffee
Expand Up @@ -13,14 +13,25 @@ github = authom.createServer(
scope: [ "gist" ]
)

# use authom to authenticate from third party providers, such as github
authom.on "auth", (req, res, data) ->
console.log "Hit Auth!\n"
console.log data
res.send "<html>" + "<body>" + "<div style='font: 300% sans-serif'>You are " + data.id + " on " + data.service + ".</div>" + "<pre><code>" + JSON.stringify(data, null, 2) + "</code></pre>" + "</body>" + "</html>"


ss.client.define "chat",
view: "chat.jade"
ss.client.define "basic",
view: "basic.jade"
css: [ "chat.styl" ]
code: [ "libs", "modules", "main" ]

ss.client.define "fluid",
view: "fluid.jade"
css: [ "chat.styl" ]
code: [ "libs", "modules", "main" ]

ss.client.define "hero",
view: "hero.jade"
css: [ "chat.styl" ]
code: [ "libs", "modules", "main" ]

Expand All @@ -34,8 +45,14 @@ ss.client.packAssets() if ss.env is "production"

app.get "/users/auth/:service/callback", authom.app

app.get "/hero", (req, res) ->
res.serve "hero"

app.get "/fluid", (req, res) ->
res.serve "fluid"

app.get "/", (req, res) ->
res.serve "chat"
res.serve "basic"

app.stack = app.stack.concat(ss.http.middleware.stack)
server = app.listen(5000)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 comments on commit acdcf47

Please sign in to comment.