Skip to content

Instantly share code, notes, and snippets.

@sifu
Created March 11, 2010 09:29
Show Gist options
  • Save sifu/328991 to your computer and use it in GitHub Desktop.
Save sifu/328991 to your computer and use it in GitHub Desktop.
{{#a_object}}
<h1>{{title}}</h1>
<p>{{description}}</p>
<ul>
{{#a_list}}
<li>{{label}}</li>
{{/a_list}}
</ul>
{{/a_object}}
var objects = {
a_object: {
title: 'this is an object',
description: 'one of its attributes is a list',
a_list: [{label: 'listitem1'}, {label: 'listitem2'}]
}
};
<h1>this is an object</h1>
<p>one of its attributes is a list</p>
<ul>
<li>listitem1</li>
<li>listitem2</li>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment