I'm using cycle to open and close a div for a row of content. It works great when there are more than a certain number of entries - in this case 4, but doesn't work when there are fewer than that. Is there a way to make this work so it always closes the div even if there are fewer entries than specified in the code?
{{ cycle(['<div class="row">', '', '', ''], loop.index0) | raw }}
... stuff....
{{ cycle(['', '', '', '</div>'], loop.index0) | raw }}