Skip to content

Instantly share code, notes, and snippets.

@defunkt

defunkt/data.yml Secret

Created October 18, 2010 14:26
Show Gist options
  • Star 4 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save defunkt/3c91441597ac650146b9 to your computer and use it in GitHub Desktop.
Save defunkt/3c91441597ac650146b9 to your computer and use it in GitHub Desktop.
---
user:
name: Bob
dogs: [ {name: Sparky}, {name: Spot} ]
---
{{#user}}
{{name}}
{{#dogs}}
{{name}} ({{#user}}{{name}}{{/user}})
{{/dogs}}
{{/user}}
@travisstaloch
Copy link

This only works if there is just 1 user. If there are many users with many dogs, you get the name of every user for each dog.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment