A powerful, fast, and relatively small application framework.
A list of changes, and how to upgrade is available in the wiki
git clone email@example.com:KoryNunn/gaffa-template.git
the template repo is a good starting point for an application.
Gaffa attempts to speed up the development of complicated UI's by providing a rich binding layer between arbitrary data and your UI.
Writing UI's using gaffa is unlike most other MVC/MVVM/etc frameworks for a number of different reasons. (Although, others share some of the below points)
Gaffa must be compiled with browserify browserify
var Gaffa = require'../'Text = require'gaffa-text'Textbox = require'gaffa-textbox'gaffa = ;// Register used viewItems with gaffagaffaregisterConstructorText;gaffaregisterConstructorTextbox;// create a text viewvar text = ;texttextbinding = '(join " " "Current value of [value]:" [value])';// create a textbox viewvar textbox = ;// Bind the textbox's value to model.valuetextboxvaluebinding = '[value]';// Tell the textbox to set it's value on keyuptextboxupdateEventName = 'keyup';// An example modelgaffamodelsetvalue:'things'// Add the view on load.gaffaviewsaddtexttextbox;;// Globalise gaffa for easy debugging.windowgaffa = gaffa;