lymar/hastache — pull request #13 by christiaanb (2012-07-06 08:28:43+00:00)
Title: Accessing Array Item by Index

Given a Template:
"{{content.0.name}} and {{content.2.name}}"

And a context:
Resource { content = [ Item { name = "Bob" }, Item { name = "Alice" }, Item { name = "Zoe"} ]

The rendered string would be:
"Bob and Zoe"

As Haskell's identifiers cannot solely consist of numeric characters, the supplied patch does not interfere with the existing generic context-deriving mechanism.
Additionally, accessing array items by their index is apparently already supported in other language implementations of Mustache templates, see https://github.com/janl/mustache.js/issues/158.