aboutsummaryrefslogtreecommitdiff
path: root/renderer/renderer.go
diff options
context:
space:
mode:
Diffstat (limited to 'renderer/renderer.go')
-rw-r--r--renderer/renderer.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/renderer/renderer.go b/renderer/renderer.go
index 9bbe06e..c9cae28 100644
--- a/renderer/renderer.go
+++ b/renderer/renderer.go
@@ -19,6 +19,7 @@ type Renderer interface {
RenderThreadPage(ctx context.Context, writer io.Writer, data *ThreadPageTemplateData) (err error)
RenderNotificationPage(ctx context.Context, writer io.Writer, data *NotificationPageTemplateData) (err error)
RenderUserPage(ctx context.Context, writer io.Writer, data *UserPageTemplateData) (err error)
+ RenderAboutPage(ctx context.Context, writer io.Writer, data *AboutPageTemplateData) (err error)
}
type renderer struct {
@@ -71,6 +72,9 @@ func (r *renderer) RenderUserPage(ctx context.Context, writer io.Writer, data *U
return r.template.ExecuteTemplate(writer, "user.tmpl", data)
}
+func (r *renderer) RenderAboutPage(ctx context.Context, writer io.Writer, data *AboutPageTemplateData) (err error) {
+ return r.template.ExecuteTemplate(writer, "about.tmpl", data)
+}
func EmojiFilter(content string, emojis []mastodon.Emoji) string {
var replacements []string