Skip to content

Instantly share code, notes, and snippets.

@Maden-maxi
Last active June 7, 2017 16:26
Show Gist options
  • Save Maden-maxi/b8fd098037c2a135616522d4814e134b to your computer and use it in GitHub Desktop.
Save Maden-maxi/b8fd098037c2a135616522d4814e134b to your computer and use it in GitHub Desktop.
loop module number
<%
for(var i=0; i < quantity; i++ ) {
var modIncrement = i+1;
var mod = modIncrement % 3;
if( ( mod == 1 ) ){
%>
<%- include('user/page-start', {index: i}); %>
<% } %>
<%- include('user/user', {letter: letter, index: i+1}); %>
<% if( ( mod == 0 ) || (i == quantity) ){ %>
<%- include('user/page-end'); %>
<% } %>
<% } %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment