MCPcopy
hub / github.com/webpro/reveal-md / getTemplate

Function getTemplate

lib/config.js:93–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

91export const getCssPaths = (css, assetsDir, base) => getAssetPaths(css, assetsDir, base);
92
93export 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
99export const getListingTemplate = async template => {
100 const base = defaults.listingTemplate === template ? __dirname : process.cwd();

Callers 1

renderFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected