Skip to content

Instantly share code, notes, and snippets.

@radmiraal
Created April 14, 2013 16:08
Show Gist options
  • Save radmiraal/5383236 to your computer and use it in GitHub Desktop.
Save radmiraal/5383236 to your computer and use it in GitHub Desktop.
fruit1: apple
fruit2: pear
fruit3: banana
fruit4: cherry
:
{/f:for}
<ul>
<f:for each="{value}" as="fruit" key="label">
<li>{label}: {fruit}</li>
</f:for>
</ul>
<ul>
{f:for(each: value,as:'fruit',key:'label')}
<li>{label}: {fruit}</li>
{/f:for}
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment