Skip to content

Instantly share code, notes, and snippets.

@maiah
Created November 22, 2012 04:02
Show Gist options
  • Save maiah/4129392 to your computer and use it in GitHub Desktop.
Save maiah/4129392 to your computer and use it in GitHub Desktop.
Component View Sample Usage
var domify = require('domify');
var View = require('view');
var html = '<input type="text" class="name"></input>';
var Person = function(name) {
this.name = name;
};
var maiah = new Person('Maiah Macariola');
​var myView = new View(maiah, domify(html));
document.body.appendChild(myView);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment