Skip to content

Instantly share code, notes, and snippets.

@vadimdemedes
Created August 27, 2013 10:09
Show Gist options
  • Save vadimdemedes/6351791 to your computer and use it in GitHub Desktop.
Save vadimdemedes/6351791 to your computer and use it in GitHub Desktop.
<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: Chute.Utils.template('script.my-template')
});
var view = new MyView({ container: 'div.my-view' });
view.render();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment