I don't have a strong feeling about this, but I prefer to write this like:
<% xyz.each { x -> %>
    ${ ui.includeFragment(...) }
<% } %>