Skip to content

Instantly share code, notes, and snippets.

@mattmarcello
Created December 8, 2014 19:18
Show Gist options
  • Save mattmarcello/f34c435da5b99a6d9423 to your computer and use it in GitHub Desktop.
Save mattmarcello/f34c435da5b99a6d9423 to your computer and use it in GitHub Desktop.
<script type="template" id="predator-list">
<% predators.each(function(predator) { %>
<li>
<a href="#predators/<%= predator.get('id') %>">
<%= predator.get('name') %>
</a>
</li>
<% }) %>
</script>
<script type="template" id="predator-detail">
<a href="#predators">Predators</a>
<h2><%= name %></h2>
<img src="<%= image %>">
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment