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

Function processHandlebarTemplate

lib/common/template-utils.mjs:16–24  ·  view source on GitHub ↗
(source, substitutions)

Source from the content-addressed store, hash-verified

14}
15
16function processHandlebarTemplate (source, substitutions) {
17 try {
18 const template = Handlebars.compile(source)
19 return template(substitutions)
20 } catch (error) {
21 debug(`Error processing template: ${error}`)
22 return source
23 }
24}
25
26export function writeTemplate (filePath, template, substitutions) {
27 const source = template(substitutions)

Callers 1

processHandlebarFileFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected