Skip to content

UmbraEngineering/cloak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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