Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Utilities functions for node.js that borrow some useful concepts from Django
branch: master

Fixed extractPost method

latest commit f99a38f9e6
Simon Willison authored
Failed to load latest commit information.
static-demo Added example.js and bulked out the readme a bit
template-demo Cleaned + Implemented half of default filters.
template Added documentation for the templatesystem.
utils Added documentation for the templatesystem.
.gitignore Implemented basic handling of filters.
djangode.js Fixed extractPost method
example.js Implemented url and regroup tags
license.txt Added BSD license Added a couple of filters
template_example.js Added documentation for the templatesystem.



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

Example usage:

    var dj = require('./djangode');
        ['^/$', 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.
Something went wrong with that request. Please try again.