MCPcopy Index your code
hub / github.com/nodeSolidServer/node-solid-server / compileTemplate

Function compileTemplate

lib/common/template-utils.mjs:7–10  ·  view source on GitHub ↗
(filePath)

Source from the content-addressed store, hash-verified

5const debug = debugModule.errors
6
7export async function compileTemplate (filePath) {
8 const indexTemplateSource = readFile(filePath)
9 return Handlebars.compile(indexTemplateSource)
10}
11
12export async function processHandlebarFile (filePath, substitutions) {
13 return processFile(filePath, (rawSource) => processHandlebarTemplate(rawSource, substitutions))

Callers 1

updateIndex.mjsFile · 0.90

Calls 1

readFileFunction · 0.90

Tested by

no test coverage detected