Skip to content

Instantly share code, notes, and snippets.

@dpritchett
Created September 22, 2010 14:29
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save dpritchett/591766 to your computer and use it in GitHub Desktop.
Save dpritchett/591766 to your computer and use it in GitHub Desktop.
#var app = require('express').createServer();
#var md = require('node-markdown').Markdown;
#app.get('/', function(req, res){
# res.send(md('Hello, *world*! The time is' +
# '\n\n**' + (new Date()) + '**'));});
#app.listen(3000);
#console.log('Now listening on port 3000');
#coffee rewrite provided by jashkenas
app = require('express').createServer()
md = require('node-markdown').Markdown
app.get '/', (req, res) ->
res.send md "Hello, *world*! The time is\n\n**#{ new Date() }**"
app.listen 3000
console.log 'Now listening on port 3000'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment