JetEngine is the jet template parser's view engine.
| 19 | |
| 20 | // JetEngine is the jet template parser's view engine. |
| 21 | type 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 | |
| 43 | var ( |
| 44 | _ Engine = (*JetEngine)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected