Nighttime Possum Meandering
    Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »

    thinnerpublic

    This package has been deprecated

    Author message:

    not used anymore

    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

    Keywords

    none

    install

    npm i thinner

    Downloadsweekly downloads

    13

    version

    0.9.1

    license

    none

    last publish

    collaborators

    • avatar