Skip to content
This repository has been archived by the owner on Jul 12, 2020. It is now read-only.

Commit

Permalink
Fix underscore template syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
zhengjia committed Dec 7, 2012
1 parent 5a69485 commit 2dd378b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.md
Expand Up @@ -250,7 +250,7 @@ var buildTodoView = function ( todoModel, todoController ) {
// We use a templating library such as Underscore
// templating which generates the HTML for our
// todo entry
todoEl.innerHTML = _.template('todoTemplate', { src: todoModel.getSrc() });
todoEl.innerHTML = _.template( $('#todoTemplate').html(), { src: todoModel.getSrc() });
}

todoModel.addSubscriber( render );
Expand Down

0 comments on commit 2dd378b

Please sign in to comment.