Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion _posts/2011-01-28-what-is-a-view.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ _Using template variables_
//Pass variables in using Underscore.js Template
var variables = { search_label: "My Search" };
// Compile the template using underscore
var template = _.template( $("#search_template").html(), variables );
var template = _.template( $("#search_template").html())( variables );
// Load the compiled HTML into the Backbone "el"
this.$el.html( template );
},
Expand Down