2022-07-14 23:25:43 +01:00
|
|
|
package pageHandler
|
|
|
|
|
|
|
|
var providers map[string]PageProvider
|
|
|
|
|
2022-07-16 00:53:50 +01:00
|
|
|
func GetProviders(cacheTemplates bool, dataStorage string, pageHandler *PageHandler) map[string]PageProvider {
|
2022-07-14 23:25:43 +01:00
|
|
|
if providers == nil {
|
|
|
|
providers = make(map[string]PageProvider)
|
2022-07-16 00:53:50 +01:00
|
|
|
if pageHandler != nil {
|
|
|
|
infoPage := newGoInfoPage(pageHandler, dataStorage, cacheTemplates)
|
|
|
|
providers[infoPage.GetPath()] = infoPage //Go Information Page
|
|
|
|
}
|
|
|
|
|
2022-07-14 23:25:43 +01:00
|
|
|
//Add the providers in the pages sub package
|
|
|
|
}
|
|
|
|
return providers
|
|
|
|
}
|