I am as many others love ❤️the Latte template engine, and I use RockFrontend to integrate it into ProcessWire.
One cool feature of Latte is, that you can easily create a comma-separated (or any other separator) list of items, where the last item does not have a separator (comma) afterwards, without needing PHP.
Take this code as an example
{foreach $pages->get('/myparentpage')->children as $item}
{$item->title|noescape}{sep}, {/sep}
{/foreach}
Which will output a list like: first title, second title, third title
If you want to know more use cases take a look at the documentation at https://latte.nette.org/en/tags#toc-first-last-sep