HandlebarsEngine contains the handlebars view engine structure.
| 17 | |
| 18 | // HandlebarsEngine contains the handlebars view engine structure. |
| 19 | type 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 | |
| 35 | var ( |
| 36 | _ Engine = (*HandlebarsEngine)(nil) |
nothing calls this directly
no outgoing calls
no test coverage detected