Created
March 30, 2010 03:35
-
-
Save defunkt/348725 to your computer and use it in GitHub Desktop.
Pragma-less implicit iterators in mustache.rb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The Beatles were: | |
{{#names}} | |
* {{to_s}} | |
{{/names}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ mustache examples/self.{yml,mustache} | |
The Beatles were: | |
* John | |
* Paul | |
* George | |
* Ringo |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- | |
names: [ John, Paul, George, Ringo ] | |
--- |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment