tree-ss
v0.0.8
Published
HTML DOM parser in server side
Downloads
4
Readme
Tree-Ss
Build an HTML DOM in server side and response it to client.
How It Works
- Build a tree DOM on server to render HTML.
- Send response procesed to client.
Usage
JS Applications
An express alternative framework
Install by npm:
$ npm install tree-ss
Config
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();
test
npm test