Skip to content
A client-side JavaScript MVC framework
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
lib
tests/specs
.gitignore
Gruntfile.js
build.js
karma.conf.js
package.json
readme.md

readme.md

cloak

Version 1.2.0

Cloak.js is a client-side MVC web application framework. Inspired greatly by Backbone.js, Cloak.js has many similar features and should be very easy to learn for anyone familiar with Backbone.js. Cloak.js is designed around the CommonJS module API.

var View = require('cloak/view');

var Heading = module.exports = View.extend({

    template: '<h1>{{ text }}</h1>',

    draw: function(text) {
        this.$elem.html(this.render({
            text: text
        }));
    }

});

Running the tests

Install the needed tools

$ npm install
$ npm install -g karma grunt-cli

Compile a copy of the code to test against

$ grunt commonjs:test

Start karma server

$ karma run

-or-

$ grunt karma
Something went wrong with that request. Please try again.