A flask-inspired microframework for nodejs.
Uses event based logic to handle routing.
In your index.js file, you might have
var Demi = require("demi")
, demi = new Demi("./public")
demi.route("/")
.on("GET", function(req, resp){
resp.write("hello world")
})
Then from the command line you might run demi run
, navigate to
localhost:8000, and view the rendered string. This will handle the streaming
of response and the data type etc. for you.
npm install demi
There are examples in the examples/ directory. Run them with
node examples/<example-name>