MCPcopy Create free account
hub / github.com/kataras/iris / HandlebarsEngine

Struct HandlebarsEngine

view/handlebars.go:19–33  ·  view source on GitHub ↗

HandlebarsEngine contains the handlebars view engine structure.

Source from the content-addressed store, hash-verified

17
18// HandlebarsEngine contains the handlebars view engine structure.
19type HandlebarsEngine struct {
20 fs fs.FS
21 // files configuration
22 rootDir string
23 extension string
24 // Not used anymore.
25 // assetFn func(name string) ([]byte, error) // for embedded, in combination with directory & extension
26 // namesFn func() []string // for embedded, in combination with directory & extension
27 reload bool // if true, each time the ExecuteWriter is called the templates will be reloaded.
28 // parser configuration
29 layout string
30 rmu sync.RWMutex
31 funcs template.FuncMap
32 templateCache map[string]*raymond.Template
33}
34
35var (
36 _ Engine = (*HandlebarsEngine)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected