Skip to content

Instantly share code, notes, and snippets.

@defunkt
Created March 30, 2010 03:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save defunkt/348725 to your computer and use it in GitHub Desktop.
Save defunkt/348725 to your computer and use it in GitHub Desktop.
Pragma-less implicit iterators in mustache.rb
The Beatles were:
{{#names}}
* {{to_s}}
{{/names}}
$ mustache examples/self.{yml,mustache}
The Beatles were:
* John
* Paul
* George
* Ringo
---
names: [ John, Paul, George, Ringo ]
---
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment