Created
March 21, 2013 18:37
-
-
Save vadimdemedes/5215518 to your computer and use it in GitHub Desktop.
Using templates, setting HTML in-place
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 MyView = Chute.View.extend({ | |
template: '<div class="example"><h1>I am a view</h1></div>' | |
}); | |
var view = new MyView({ container: 'div.some-view' }); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment