MCPcopy Index your code
hub / github.com/dnote/dnote / getTargetFiles

Method getTargetFiles

pkg/server/views/engine.go:53–58  ·  view source on GitHub ↗

getTargetFiles returns an array of files needed for rendering

(files []string)

Source from the content-addressed store, hash-verified

51
52// getTargetFiles returns an array of files needed for rendering
53func (e Engine) getTargetFiles(files []string) []string {
54 addTemplatePath(files)
55 addTemplateExt(files)
56
57 return append(files, e.filePatterns...)
58}
59
60// NewView returns a new view by parsing the given layout and files
61func (e Engine) NewView(app *app.App, viewConfig Config, files ...string) *View {

Callers 1

NewViewMethod · 0.95

Calls 2

addTemplatePathFunction · 0.85
addTemplateExtFunction · 0.85

Tested by

no test coverage detected