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

Struct JetEngine

view/jet.go:21–41  ·  view source on GitHub ↗

JetEngine is the jet template parser's view engine.

Source from the content-addressed store, hash-verified

19
20// JetEngine is the jet template parser's view engine.
21type JetEngine struct {
22 fs fs.FS
23 rootDir string
24 extension string
25 left, right string
26
27 loader jet.Loader
28
29 developmentMode bool
30
31 // The Set is the `*jet.Set`, exported to offer any custom capabilities that jet users may want.
32 // Available after `Load`.
33 Set *jet.Set
34 mu sync.Mutex
35
36 // Note that global vars and functions are set in a single spot on the jet parser.
37 // If AddFunc or AddVar called before `Load` then these will be set here to be used via `Load` and clear.
38 vars map[string]interface{}
39
40 jetDataContextKey string
41}
42
43var (
44 _ Engine = (*JetEngine)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected