owljs
TypeScript icon, indicating that this package has built-in type declarations

0.9.1 • Public • Published

owl.js

Backbone-like frontend library

Build Status Coverage Status Stories in Ready

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. You can use React or any other UI library insted of owl.View.

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.

Development

Run unit tests

karma start

or

npm test

Dependents (0)

Package Sidebar

Install

npm i owljs

Weekly Downloads

3

Version

0.9.1

License

MIT

Unpacked Size

130 kB

Total Files

27

Last publish

Collaborators

  • omegascorp