Skip to content

Instantly share code, notes, and snippets.

@vadimdemedes
Created March 21, 2013 18:37
Show Gist options
  • Save vadimdemedes/5215518 to your computer and use it in GitHub Desktop.
Save vadimdemedes/5215518 to your computer and use it in GitHub Desktop.
Using templates, setting HTML in-place
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