diff options
Diffstat (limited to 'app/templates.go')
-rw-r--r-- | app/templates.go | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/app/templates.go b/app/templates.go new file mode 100644 index 0000000..52ded7a --- /dev/null +++ b/app/templates.go | |||
@@ -0,0 +1,18 @@ | |||
1 | package app | ||
2 | |||
3 | import ( | ||
4 | "code.crute.us/mcrute/golib/echo/controller" | ||
5 | "code.crute.us/mcrute/ssh-proxy/app/models" | ||
6 | ) | ||
7 | |||
8 | type PageContext struct { | ||
9 | PageName string | ||
10 | Year int | ||
11 | RenderTime string | ||
12 | Flags *controller.FeatureFlags | ||
13 | Context *controller.PageContext | ||
14 | CSRFToken string | ||
15 | AuthenticatedUser *models.User | ||
16 | Model any // For pages with one model | ||
17 | Models any // For pages with a collection of models | ||
18 | } | ||