thinner

Volatile tools

not used anymore
Last updated 7 years ago by pateketrueke .
MIT · Original npm · Tarball · package.json
$ cnpm install thinner 
SYNC missed versions from official npm registry.

thinner is built-in on top of router.js:

  • It provides a strong mechanism to handle application states
  • Also provides you with a model-like mechanism for consuming your data

In order to work, thinner needs:

Also you can include RactiveJS and jQuery to provide action handling and data-binding within your views.

Installation

You can install thinner using NPM or Bower, just remember the dependencies for it.

app.js

var app = thinner.setup({
  router: new Router()
}).scope();


thinner(function (module) {
  module.helloWorld = function () {};
  module.helloWorld.prototype.enter = function () {
    console.log('Hello World!');
  };
});

app.router.map(function (match) {
  match('/').to('hello_world');
});

app.run(function () {
  app.go('/');
});

Build Status

Current Tags

  • 0.9.1                                ...           latest (7 years ago)

4 Versions

  • 0.9.1 [deprecated]           ...           7 years ago
  • 0.9.0 [deprecated]           ...           7 years ago
  • 0.8.1 [deprecated]           ...           7 years ago
  • 0.8.0 [deprecated]           ...           7 years ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 1
Dependencies (1)
Dev Dependencies (10)
Dependents (0)
None

Copyright 2014 - 2017 © taobao.org |