DjangoEngine contains the django view engine structure.
| 91 | |
| 92 | // DjangoEngine contains the django view engine structure. |
| 93 | type 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 | |
| 109 | var ( |
| 110 | _ Engine = (*DjangoEngine)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected