Skip to content

Latest commit

 

History

History
51 lines (32 loc) · 806 Bytes

readme.md

File metadata and controls

51 lines (32 loc) · 806 Bytes

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