closes #9, Timestamp variable in template context
continuous-integration/drone/push Build is passing

This commit is contained in:
Sebastian Frank committed 2019-03-12 13:16:37 +01:00
1 parent 4041868a9f
commit de7931acda
3 files changed
+16 -13

No files matched your search

+3
View File
@@ -7,6 +7,7 @@ import (
"path"
"regexp"
"strings"
"time"
"gitbase.de/apairon/mark2web/config"
"github.com/Depado/bfchroma"
@@ -24,6 +25,8 @@ func newContext() pongo2.Context {
"fnRender": RenderFn,
"AssetsPath": config.Config.Assets.ToPath,
"Timestamp": time.Now().Unix,
}
}