Skip to content

Instantly share code, notes, and snippets.

@cablehead
Created October 7, 2010 03:49
Show Gist options
  • Save cablehead/614520 to your computer and use it in GitHub Desktop.
Save cablehead/614520 to your computer and use it in GitHub Desktop.
<script id="tmpl_locations" type="text/x-jquery-tmpl">
{%templatetag openvariable%}each locations{%templatetag closevariable%}
<tr>
<td><a href="${slug}">${name}</a></td>
<td><a href="${slug}">${address}</a></td>
<td>${roundto2(latlng[0])}, ${roundto2(latlng[1])}</td>
<td>${roundto2(distance)}</td>
</tr>
{%templatetag openvariable%}/each{%templatetag closevariable%}
</script>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment