Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Object JavaScript - Sample Mustache Template
<h1>{{header}}</h1>
{{#bug}}
{{/bug}}
{{#items}}
{{#first}}
<li><strong>{{name}}</strong></li>
{{/first}}
{{#link}}
<li><a href="{{url}}">{{name}}</a></li>
{{/link}}
{{/items}}
{{#empty}}
<p>The list is empty.</p>
{{/empty}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment