I am using the underscore.js template library with my backbone example. My template looks like this:
<script id="results-template" type="text/template">
<h2><%= title %></h2>
</script>
The JSON object looks like this:
{"src":"placeholder.jpg","title":"an image placeholder","coordinates":[0,0],"tags":["untagged"],"location":"home"}
I am trying to parse this object through my template but the error I get through my console is:
Uncaught ReferenceError: title is not defined
What am I doing wrong? Live fiddle is here: http://jsfiddle.net/amit_e/muLjV/46/