0.0.0 • Published 9 years ago

capuchino v0.0.0

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

Capuchino Build Status

Web app framework on Modern features.

Capuchino provides simple MV* Framework with edge features (Object.observe, Virtual DOM, and more...)

Respect Backbone.js, Marionette.js.

Feature

Everything Work in progress

Model

A Plain-Object like model.

Capuchino.Model works with Object.observe much. (Of course, works even without Object.observe.) Capuchino.Model has a Observer mechanism(EventEmitter) on itself.

See Capuchino.Model Document for more details.

class UserModel extends Capuchino.Model
    _properties :
        id : {initial : -1}
        name : {initial : ""}

# Create
user = new UserModel

# Plain-Object like
Object.keys(user) # => ['id', 'name']

# Support toJSON
user.toJSON() # {"id": -1, "name": "capuchino"}

And supports Backbone-like extending.

var UserModel = Capuchino.Model.extend({
    _properties : {
        name : { initial : "" }
    }
});

View

WIP

Disposers & DisposableObject

WIP