| 91 | export const getCssPaths = (css, assetsDir, base) => getAssetPaths(css, assetsDir, base); |
| 92 | |
| 93 | export const getTemplate = async template => { |
| 94 | const base = defaults.template === template ? __dirname : process.cwd(); |
| 95 | const contents = await readFile(path.join(base, template)); |
| 96 | return contents.toString(); |
| 97 | }; |
| 98 | |
| 99 | export const getListingTemplate = async template => { |
| 100 | const base = defaults.listingTemplate === template ? __dirname : process.cwd(); |