Created
March 23, 2013 17:48
-
-
Save gsmaverick/5228688 to your computer and use it in GitHub Desktop.
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
// 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