0.0.8 • Published 3 years ago

tree-ss v0.0.8

Weekly downloads
1
License
MIT
Repository
github
Last release
3 years ago

Tree-Ss

Build an HTML DOM in server side and response it to client.

How It Works

  1. Build a tree DOM on server to render HTML.
  2. Send response procesed to client.

Usage

JS Applications

An express alternative framework

  1. Install by npm:

    $ npm install tree-ss

Config

Tree-Ss cache index template, charset and static file age

  1. trees.start():

    trees.start({
    	templateIndex: __dirname + "/views/index.html", //template index
    	staticage: 1000 * 60 * 60 * 24 * 7, //default = 7days
    	charset: "utf-8"
    });
  2. trees.init(req, res):

    trees.init(req, res).render();

test

npm test
0.0.8

3 years ago

0.0.7

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago