Created
November 22, 2012 04:02
-
-
Save maiah/4129392 to your computer and use it in GitHub Desktop.
Component View Sample Usage
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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