Build an HTML DOM in server side and response it to client.
- Build a tree DOM on server to render HTML.
- Send response procesed to client.
An express alternative framework
Show instructions
-
Install by npm:
$ npm install tree-ss
Tree-Ss cache index template, charset and static file age
-
trees.start():
trees.start({ templateIndex: __dirname + "/views/index.html", //template index staticage: 1000 * 60 * 60 * 24 * 7, //default = 7days charset: "utf-8" });
-
trees.init(req, res):
trees.init(req, res).render();
npm test