Utilities functions for node.js that borrow some useful concepts from Django
JavaScript Python
Switch branches/tags
Nothing to show
Latest commit f99a38f Mar 19, 2010 Simon Willison Fixed extractPost method
Permalink
Failed to load latest commit information.
static-demo Added example.js and bulked out the readme a bit Nov 20, 2009
template-demo Cleaned + Implemented half of default filters. Dec 12, 2009
template Added documentation for the templatesystem. Mar 9, 2010
utils Added documentation for the templatesystem. Mar 9, 2010
.gitignore
README.txt Added example.js and bulked out the readme a bit Nov 20, 2009
TEMPLATES.md marked up links Mar 9, 2010
djangode.js
example.js Implemented url and regroup tags Feb 25, 2010
license.txt Added BSD license Feb 16, 2010
regression.py
template_example.js Added documentation for the templatesystem. Mar 9, 2010

README.txt

djangode
========

Utility functions for node.js that imitate some useful concepts from Django.

    http://nodejs.org/
    http://www.djangoproject.com/

Example usage:

    var dj = require('./djangode');
    dj.serve(dj.makeApp([
        ['^/$', function(req, res) {
            dj.respond(res, '<h1>Homepage</h1>');
        }],
        ['^/other$', function(req, res) {
            dj.respond(res, '<h1>Other page</h1>');
        }],
        ['^/page/(\\d+)$', function(req, res, page) {
            dj.respond(res, '<h1>Page ' + page + '</h1>');
        }]
    ]), 8008); // Serves on port 8008

Run "node example.js" for a slightly more interesting example.