Skip to content

Commit

Permalink
Add @value syntax to Iterable
Browse files Browse the repository at this point in the history
  • Loading branch information
giflw authored Sep 23, 2016
1 parent abfadde commit c42c36e
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public Object apply(final Object context, final Options options)
Object it = loop.next();
Context itCtx = Context.newContext(parent, it);
itCtx.combine("@index", index)
.combine("@value", it)
.combine("@first", index == base ? "first" : "")
.combine("@last", !loop.hasNext() ? "last" : "")
.combine("@odd", even ? "" : "odd")
Expand Down

0 comments on commit c42c36e

Please sign in to comment.