npm.io
0.0.16 • Published 8 years ago

tsf-web

Licence
MIT
Version
0.0.16
Deps
7
Vulns
0
Weekly
0
Stars
1

TSF - TypeScript Web Framework

An lightweight web framework for TypeScript 1.8 kB (minified and gzipped),

Build Status

Documentation and Examples - https://stan-kondrat.github.io/tsf

const app = new TSF('#app');

class Main {
    public $template = `<button $onclick="this.plus()">Plus</button> {{ this.counter }}`;
    public counter = 0;
    
    plus() {
        this.counter++; // DOM will updated automatically
    }
}

const main = new Main();

app.run(main); // Render application root component

main.counter = 100; // DOM will updated automatically

Installing / Getting started

npm install tsf-web

Licensing

The TSF is open-sourced software licensed under the MIT.