It’s a shame you can’t have “naked” templates, i.e. outside an entity or service.
There’s a feature request here that should be voted for if you haven’t already and want easy loops:
It’s a shame you can’t have “naked” templates, i.e. outside an entity or service.
There’s a feature request here that should be voted for if you haven’t already and want easy loops: