% var generateScriptTags = function(allScripts) { allScripts.forEach(function(script){ %> <% }); }; %> <% var toArray = function(scripts) { %>[<% scripts.forEach(function(scriptUrl, index){ %>"<%= scriptUrl %>"<% if (index !== scripts.length -1) { %>,<% } }); %>]<% }; %> <% scripts.src.forEach(function(fullLessName) { var pathParts = fullLessName.split('/'); var fullCssName = fullLessName.replace(/less/g, 'css'); var lessName = pathParts[pathParts.length - 1]; var name = lessName.split('.')[0]; %> <% }); %> <% css.forEach(function(style){ %> <% }) %> <% generateScriptTags(scripts.polyfills); %> <% generateScriptTags(scripts.jasmine); %> <% generateScriptTags(scripts.boot); %> <% generateScriptTags(scripts.helpers); %> <% generateScriptTags(scripts.vendor); %>