add the Production flag, command-line options, and DebugMode computed flag, and put it in the main places I expect it to be used
This commit is contained in:
+1
-1
@@ -302,7 +302,7 @@ func setupTemplates() {
|
||||
templateLoaders = append(templateLoaders, embedfs.NewLoader("views/", static_views))
|
||||
|
||||
// Create the template renderer and add our globals to it.
|
||||
views = jet.NewSet(multi.NewLoader(templateLoaders...), jet.DevelopmentMode(true))
|
||||
views = jet.NewSet(multi.NewLoader(templateLoaders...), jet.DevelopmentMode(config.GlobalComputedConfig.DebugMode))
|
||||
views.AddGlobal("AmsterdamVersion", config.AMSTERDAM_VERSION)
|
||||
views.AddGlobal("AmsterdamCopyright", config.AMSTERDAM_COPYRIGHT)
|
||||
views.AddGlobal("GlobalConfig", config.GlobalConfig)
|
||||
|
||||
Reference in New Issue
Block a user