Skip to content

Instantly share code, notes, and snippets.

@hammett
Created April 22, 2014 21:53
Show Gist options
  • Save hammett/11195752 to your computer and use it in GitHub Desktop.
Save hammett/11195752 to your computer and use it in GitHub Desktop.
data = {
orgs: [
{ key: 'orgkey', name: 'orgname',
projects: [
{ key: 'projkey', name: 'projname' }
] }
]
};
{{#data.orgs}}
<li><a href="/orgs/{{key}}">{{name}}</a></li>
{{#projects}}
<ul>
<li><a href="/orgs/{{base.key}}/projects/{{key}}">{{name}}</a></li>
</ul>
{{/projects}}
{{/data.orgs}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment