MCPcopy
hub / github.com/flosch/pongo2 / HttpFilesystemLoader

Struct HttpFilesystemLoader

template_loader.go:134–137  ·  view source on GitHub ↗

HttpFilesystemLoader supports loading templates from an http.FileSystem - useful for using one of several file-to-code generators that packs static files into a go binary (ex: https://github.com/jteeuwen/go-bindata)

Source from the content-addressed store, hash-verified

132// file-to-code generators that packs static files into
133// a go binary (ex: https://github.com/jteeuwen/go-bindata)
134type HttpFilesystemLoader struct {
135 fs http.FileSystem
136 baseDir string
137}
138
139// MustNewHttpFileSystemLoader creates a new HttpFilesystemLoader instance
140// and panics if there's any error during instantiation. The parameters

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected