owl.js

0.4.1 • Public • Published

owl.js

Backbone-like frontend library

Build Status Coverage Status

Ask a question in gitter.

Install

Bower

bower install owl.js

npm

npm install owl.js

Features

Languages: ES5, ES6, TypeScript.

Modules: CommonJS, amd.

Libraries: React.

Examples

To start examples server

cd examples
npm start

Concept

owl.js is simple library similar to backbone.js, without dependency on underscore.js and jQuery. If you know backbone.js you mostly know owl.js.

The library uses MVC as main pattern. owl.Model is responsible for representing data from server based on REST architecture. owl.View is responsible for rendering view it can use any template engine to do it or generate DOM manually. owl.Controller is responsible for business logic.

Also there is few classes out of the main pattern.

owl.Router is created to manage pages based on URL. It contains records named routes. Each route contains path and a controller that will be called for specified path.

owl.Collection is an array of owl.Models it is created to represent model sets.

In is not necessary to use all of those classes, for example you can use React components instead of owl.View.

Development

Run unit tests

karma start

or

npm test

Readme

Keywords

none

Package Sidebar

Install

npm i owl.js

Weekly Downloads

0

Version

0.4.1

License

MIT

Last publish

Collaborators

  • omegascorp