This is a
playground to test code. It runs a full
Node.js environment and already has all of
npm’s 400,000 packages pre-installed, including
owljs with all
npm packages installed. Try it out:
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.
Backbone-like frontend library
Ask a question in gitter.
bower install owl.js
npm install owl.js
Languages: ES5, ES6, TypeScript.
Modules: CommonJS, amd.
To start examples server
cd examples npm start
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.
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.
Run unit tests