feat(for tag): Provide the counter 0 indexed to the context
Closes #121
This commit is contained in:
@@ -114,6 +114,7 @@ class ForNode : NodeType {
|
||||
"first": index == 0,
|
||||
"last": index == (count - 1),
|
||||
"counter": index + 1,
|
||||
"counter0": index,
|
||||
]
|
||||
|
||||
return try context.push(dictionary: ["forloop": forContext]) {
|
||||
|
||||
Reference in New Issue
Block a user