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

Struct DjangoEngine

view/django.go:93–107  ·  view source on GitHub ↗

DjangoEngine contains the django view engine structure.

Source from the content-addressed store, hash-verified

91
92// DjangoEngine contains the django view engine structure.
93type DjangoEngine struct {
94 fs fs.FS
95 // files configuration
96 rootDir string
97 extension string
98 reload bool
99 //
100 rmu sync.RWMutex // locks for filters, globals and `ExecuteWiter` when `reload` is true.
101 // filters for pongo2, map[name of the filter] the filter function . The filters are auto register
102 filters map[string]FilterFunction
103 // globals share context fields between templates.
104 globals map[string]interface{}
105 Set *pongo2.TemplateSet
106 templateCache map[string]*pongo2.Template
107}
108
109var (
110 _ Engine = (*DjangoEngine)(nil)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected