diff --git a/_posts/2011-01-28-what-is-a-view.md b/_posts/2011-01-28-what-is-a-view.md index a2823324..3a3215a9 100644 --- a/_posts/2011-01-28-what-is-a-view.md +++ b/_posts/2011-01-28-what-is-a-view.md @@ -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 ); },