Djangode
Utilities functions for node.js that borrow some useful concepts from Django
Install / Use
/learn @simonw/DjangodeREADME
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.
Related Skills
node-connect
351.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
110.6kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
351.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
qqbot-media
351.2kQQBot 富媒体收发能力。使用 <qqmedia> 标签,系统根据文件扩展名自动识别类型(图片/语音/视频/文件)。
