summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--db.go2
-rw-r--r--templates.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/db.go b/db.go
index d8648b0..e673344 100644
--- a/db.go
+++ b/db.go
@@ -24,7 +24,7 @@ func (w *Webpage) NewMigrations(static embed.FS, dynamic fs.FS) *Webpage {
return w
}
func (w *Webpage) getMigrationRoot() fs.FS {
- if w.isDynamic() {
+ if w.IsDynamic() {
return w.migrations.dynamicRoot
}
return w.migrations.staticRoot
diff --git a/templates.go b/templates.go
index 408085c..31fe48a 100644
--- a/templates.go
+++ b/templates.go
@@ -18,7 +18,7 @@ type templates struct {
}
func (w *Webpage) getTemplateRoot() fs.FS {
- if w.isDynamic() {
+ if w.IsDynamic() {
return w.templates.dynamicRoot
}
return w.templates.staticRoot