Skip to content

Instantly share code, notes, and snippets.

@zeekay
Created July 2, 2012 05:21
Show Gist options
  • Save zeekay/3031238 to your computer and use it in GitHub Desktop.
Save zeekay/3031238 to your computer and use it in GitHub Desktop.
md = require('markdown').markdown
read = require('fs').readFileSync
app = require('die')
base: __dirname
app.inject require '../app2'
app.mount 'app3', require '../app3'
app.extend ->
@set 'view options'
layout: false
@get '/', ->
readme = md.toHTML read __dirname + '/README.md', 'utf8'
@render 'index', readme: readme
module.exports = app
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment