| 24 | * @returns {Promise} |
| 25 | */ |
| 26 | const buildRenderedHtml = async config => { |
| 27 | if (!index) index = await readFile(__dirname + '/views/index.html', 'utf8'); |
| 28 | if (!template) template = handlebars.compile(index); |
| 29 | return template(config); |
| 30 | }; |
| 31 | |
| 32 | // Register customer Handlebars.js helper |
| 33 | handlebars.registerHelper('ternary', (comp1, comp2, opt1, opt2) => { |
no outgoing calls
no test coverage detected