Skip to content

Instantly share code, notes, and snippets.

@vadimdemedes
Created March 21, 2013 18:36
Show Gist options
  • Save vadimdemedes/5215510 to your computer and use it in GitHub Desktop.
Save vadimdemedes/5215510 to your computer and use it in GitHub Desktop.
Using templates, getting from a DOM element
<script class="my-template" type="application/x-template">
<div class="example">
<h1>I am a view</h1>
</div>
</script>
var MyView = Chute.View.extend({
template: 'script.my-template'
});
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