modweb-middleware

    1.0.4 • Public • Published

    modweb-middleware

    Resolves request url, renders page and outputs it.

    Example

    var Modweb = require("modweb-middleware");
    var http = require("http");
     
    // load site.json
    var site = require("./site");
    var modweb = new Modweb(site);
     
    // create webserver
    var app = http.createServer(modweb);
     
    // listen for connections
    app.listen(8080);

    License

    MIT

    Keywords

    Install

    npm i modweb-middleware

    DownloadsWeekly Downloads

    0

    Version

    1.0.4

    License

    MIT

    Last publish

    Collaborators

    • mderijcke