I updated the each tag to set the context of the bool values start and end. When the collection starts the loop, start will be true, then false as it continues. End will be false until the collection length has been reached.
I know that you can tell if the collection has started iterating based on if the index is 0, however I could not find a way to tell if each tag had finished iterating.
I believe this is useful for html templating if you'd like to format html different based on start, middle, and end of a collection.
I updated the each tag to set the context of the bool values start and end. When the collection starts the loop, start will be true, then false as it continues. End will be false until the collection length has been reached.
I know that you can tell if the collection has started iterating based on if the index is 0, however I could not find a way to tell if each tag had finished iterating.
I believe this is useful for html templating if you'd like to format html different based on start, middle, and end of a collection.
For example in a menu: