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

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

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,
}
}