public
Last active

Pragma-less implicit iterators in mustache.rb

  • Download Gist
beatles.mustache
HTML+Django
1 2 3 4
The Beatles were:
{{#names}}
* {{to_s}}
{{/names}}
beatles.sh
Shell
1 2 3 4 5 6
$ mustache examples/self.{yml,mustache}
The Beatles were:
* John
* Paul
* George
* Ringo
beatles.yml
YAML
1 2 3
---
names: [ John, Paul, George, Ringo ]
---

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.