Skip to content

Instantly share code, notes, and snippets.

@gsmaverick
Created March 23, 2013 17:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gsmaverick/5228688 to your computer and use it in GitHub Desktop.
Save gsmaverick/5228688 to your computer and use it in GitHub Desktop.
// The prototypes you added
MC.View = Backbone.View;
MC.View.prototype.Terms = Terms.m;
MC.View.prototype.formats = formats;
// In your view:
render : function() {
this.$el.html(this.template({
terms: this.Terms
// Put any other data you want in your template inside this object as well
}));
}
// In your template:
<span class="importantHeading"><%= terms['title.all'] %></span><br /> <br />
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment