MCPcopy Index your code
hub / github.com/flosch/pongo2 / MustNewLocalFileSystemLoader

Function MustNewLocalFileSystemLoader

template_loader.go:44–50  ·  view source on GitHub ↗

MustNewLocalFileSystemLoader creates a new LocalFilesystemLoader instance and panics if there's any error during instantiation. The parameters are the same like NewLocalFileSystemLoader.

(baseDir string)

Source from the content-addressed store, hash-verified

42// and panics if there's any error during instantiation. The parameters
43// are the same like NewLocalFileSystemLoader.
44func MustNewLocalFileSystemLoader(baseDir string) *LocalFilesystemLoader {
45 fs, err := NewLocalFileSystemLoader(baseDir)
46 if err != nil {
47 log.Panic(err)
48 }
49 return fs
50}
51
52// NewLocalFileSystemLoader creates a new LocalFilesystemLoader and allows
53// templatesto be loaded from disk (unrestricted). If any base directory

Callers 1

template_sets.goFile · 0.85

Calls 1

NewLocalFileSystemLoaderFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…