feature: add debug mode in configuration
- automatically reload HTML templates when debug mode is activated (no rebuild necessary)
This commit is contained in:
@ -68,6 +68,7 @@ func getServiceContainer(conf *config.Config) (*service.Container, error) {
|
||||
// Create and expose template service provider
|
||||
ctn.Provide(template.ServiceName, html.ServiceProvider(
|
||||
html.NewDirectoryLoader(conf.HTTP.TemplateDir),
|
||||
html.WithDevMode(conf.Debug),
|
||||
))
|
||||
|
||||
// Create and expose config service provider
|
||||
|
Reference in New Issue
Block a user