Skip to content

Instantly share code, notes, and snippets.

@ryardley
Created February 5, 2015 11:04
Show Gist options
  • Save ryardley/69f710d19025de547a52 to your computer and use it in GitHub Desktop.
Save ryardley/69f710d19025de547a52 to your computer and use it in GitHub Desktop.
<head>
<title>myapp</title>
</head>
<body>
<h1>Repository Explorer</h1>
<ul>
<li><a href="#">JavaScript</a></li>
<li><a href="#">Ruby</a></li>
<li><a href="#">Go</a></li>
</ul>
{{> repos}}
</body>
<template name="repos">
<h2>Popular {{language}} repositories</h2>
<table>
{{#each repositories}}
<tr>
<td>{{>this.name}}</td>
<td>{{>this.stars}}</td>
<td>{{>this.url}}</td>
</tr>
{{/each}}
</table>
<button>Refresh</button>
</template>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment