MCPcopy Create free account
hub / github.com/dnote/dnote / addTemplatePath

Function addTemplatePath

pkg/server/views/engine.go:98–102  ·  view source on GitHub ↗

addTemplatePath takes in a slice of strings representing file paths for templates.

(files []string)

Source from the content-addressed store, hash-verified

96// addTemplatePath takes in a slice of strings
97// representing file paths for templates.
98func addTemplatePath(files []string) {
99 for i, f := range files {
100 files[i] = fmt.Sprintf("templates/%s", f)
101 }
102}
103
104// addTemplateExt takes in a slice of strings
105// representing file paths for templates and it appends

Callers 1

getTargetFilesMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected