<% if( Total > 0 ) { %> <% if( From != 1) { %> <% } %> Viewing emblems <%= From %> to <%= To %> of <%= Total %> <% if( To < Total) { %> <% } %> <% } else { %> No emblems found <% } %>

<% _.each(Emblems, function(emblem, index) { %> <% console.log(index + " aa") %> <% if(index % 3 == 0) { %>
<% } %>

<%= emblem.Motto %>

<% if(index % 3 == 2 || index == (Emblems.length - 1)) { %>
<% } %> <% }); %>

<% if( Total > 0 ) { %> <% if( From != 1) { %> <% } %> Viewing emblems <%= From %> to <%= To %> of <%= Total %> <% if( To < Total) { %> <% } %> <% } %>