const html = require('html-template-tag') /** * Generates HTML templates from list of test sheets */ module.exports = (stylesheets, helpers, spec, less) => { if (!Array.isArray(helpers)) { helpers = [helpers] } return html` Less.js Spec Runner $${stylesheets.map(function(fullLessName) { var pathParts = fullLessName.split('/'); var fullCssName = fullLessName.replace(/\/less\//g, '/css/').replace(/less$/, 'css') var lessName = pathParts[pathParts.length - 1]; var name = lessName.split('.')[0]; return ` ` }).join('')} $${helpers.map(helper => ` `).join('')}
` }