MCPcopy Create free account
hub / github.com/TanStack/cli / registerTemplate

Function registerTemplate

packages/create/scripts/generate-manifest.mjs:195–200  ·  view source on GitHub ↗
(template)

Source from the content-addressed store, hash-verified

193}
194
195function registerTemplate(template) {
196 const key = getTemplateKey(template)
197 if (!templateRenderers.has(key)) {
198 templateRenderers.set(key, compileTemplate(template))
199 }
200}
201
202function stripSemicolon(code) {
203 return code.replace(/;(\s*$)/, '$1')

Callers 2

readTemplateFileFunction · 0.85
scanCatalogDirectoryFunction · 0.85

Calls 3

getTemplateKeyFunction · 0.85
compileTemplateFunction · 0.85
setMethod · 0.80

Tested by

no test coverage detected