Created
March 21, 2013 18:33
-
-
Save vadimdemedes/5215470 to your computer and use it in GitHub Desktop.
Using templates, loading using URL
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
<div class="example"> | |
<h1>I am a view</h1> | |
</div> |
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: 'my-template.mu' | |
}); | |
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