access array item by index

911 views
Skip to first unread message

Jeff Thorn

unread,
Apr 9, 2013, 11:33:24 PM4/9/13
to mustac...@googlegroups.com
Is it possible in Mustache Java to access an array item by index, as described here? 


This seems pretty common in many mustache implementations but does not appear to work with mustache java.

Thanks!

Jeff



Sam

unread,
Apr 9, 2013, 11:37:32 PM4/9/13
to mustac...@googlegroups.com
It is common but not supported by the specification. There is a way to do it if you absolutely need it for compatibility:


But, I suggest that you instead name them something in your view class.

Sam
Reply all
Reply to author
Forward
0 new messages