aboutsummaryrefslogtreecommitdiff
path: root/renderer.go
diff options
context:
space:
mode:
authorAlex Auvolat <alex@adnab.me>2022-12-06 16:01:38 +0100
committerAlex Auvolat <alex@adnab.me>2022-12-06 16:01:38 +0100
commit832c17a3a9f6277e7921f4e811401d5478755ff9 (patch)
treee5e2b0bd1d0337937a0ce5f207ba2523df7c332c /renderer.go
parente045227527de36cdbb954e00a4cf8de041a25828 (diff)
parentf01fbcbc48db5e65d69a0ebd9d7cb0deb378cf13 (diff)
downloadalps-832c17a3a9f6277e7921f4e811401d5478755ff9.tar.gz
alps-832c17a3a9f6277e7921f4e811401d5478755ff9.zip
Merge branch 'master' into deuxfleurs
Diffstat (limited to 'renderer.go')
-rw-r--r--renderer.go24
1 files changed, 12 insertions, 12 deletions
diff --git a/renderer.go b/renderer.go
index 140abae..6df662b 100644
--- a/renderer.go
+++ b/renderer.go
@@ -35,10 +35,10 @@ type GlobalRenderData struct {
// BaseRenderData is the base type for templates. It should be extended with
// additional template-specific fields:
//
-// type MyRenderData struct {
-// BaseRenderData
-// // add additional fields here
-// }
+// type MyRenderData struct {
+// BaseRenderData
+// // add additional fields here
+// }
type BaseRenderData struct {
GlobalData GlobalRenderData
// additional plugin-specific data
@@ -61,15 +61,15 @@ type RenderData interface {
//
// It can be used by routes to pre-fill the base data:
//
-// type MyRenderData struct {
-// BaseRenderData
-// // add additional fields here
-// }
+// type MyRenderData struct {
+// BaseRenderData
+// // add additional fields here
+// }
//
-// data := &MyRenderData{
-// BaseRenderData: *alps.NewBaseRenderData(ctx),
-// // other fields...
-// }
+// data := &MyRenderData{
+// BaseRenderData: *alps.NewBaseRenderData(ctx),
+// // other fields...
+// }
func NewBaseRenderData(ectx echo.Context) *BaseRenderData {
ctx, isactx := ectx.(*Context)