<% unless @filters.empty? %> <% for filter in @filters %> <<%= filter[:name] %> FilterType="<% filter[:type] %>" FilterValue="<% filter[:value] %>"/> <% end %> <% end %>