aboutsummaryrefslogtreecommitdiff
path: root/cmd/server/app.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/server/app.go')
-rw-r--r--cmd/server/app.go18
1 files changed, 13 insertions, 5 deletions
diff --git a/cmd/server/app.go b/cmd/server/app.go
index 4f62a09..d4977ab 100644
--- a/cmd/server/app.go
+++ b/cmd/server/app.go
@@ -16,11 +16,15 @@ type App struct {
redisPool *redis.Pool
RedisKey string
- ReIndexPath string
- StaticDirectory string
- BaseTemplate string
- DocumentSplit string
- Suffix string
+ ReIndexPath string
+ StaticDirectory string
+ BaseTemplate string
+ TemplateDirectory string
+ DocumentSplit string
+ Suffix string
+
+ // Related to user authentication
+ auth *Auth
// Related to the Atom feed
Title string
@@ -59,6 +63,10 @@ func loadConf(fn string) (*App, error) {
page.BaseTemplate = app.BaseTemplate
}
+ if app.TemplateDirectory != "" {
+ page.TemplateDirectory = app.TemplateDirectory
+ }
+
if app.DocumentSplit != "" {
page.DocumentSplit = app.DocumentSplit
}