Last active
June 7, 2017 16:26
-
-
Save Maden-maxi/b8fd098037c2a135616522d4814e134b to your computer and use it in GitHub Desktop.
loop module number
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<% | |
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