aboutsummaryrefslogtreecommitdiff
path: root/frontend/renderer.go
diff options
context:
space:
mode:
Diffstat (limited to 'frontend/renderer.go')
-rw-r--r--frontend/renderer.go14
1 files changed, 14 insertions, 0 deletions
diff --git a/frontend/renderer.go b/frontend/renderer.go
index f03fe77..0a2b7e9 100644
--- a/frontend/renderer.go
+++ b/frontend/renderer.go
@@ -5,6 +5,20 @@ import (
5 "net/http" 5 "net/http"
6) 6)
7 7
8// Action ist die Aktion auf einer Card.
9type Action struct {
10 Name string
11 Link string
12}
13
14// Card ist eine Karte im Materialize-Design.
15type Card struct {
16 Title string
17 Description string
18 Size string
19 Actions []Action
20}
21
8// Renderer rendert Seiten. 22// Renderer rendert Seiten.
9type Renderer struct { 23type Renderer struct {
10 templates *template.Template 24 templates *template.Template