Skip to content

Instantly share code, notes, and snippets.

@robi42
Created December 11, 2010 18:13
Show Gist options
  • Save robi42/737528 to your computer and use it in GitHub Desktop.
Save robi42/737528 to your computer and use it in GitHub Desktop.
var {html5} = require('hiccup/page'),
{Application} = require('stick'),
{Response} = require('stick/helpers');
var text = 'Hello World!',
markup = html5(['head', ['title', text]], ['body', ['h1', text]]),
app = exports.app = Application('error', 'notfound', 'route')
.get('/', function (req) Response.html(markup));
if (require.main === module) {
require('stick/server').main(module.id);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment