From e359eaaebd7270476075ca9e08b7b53fb9e69f24 Mon Sep 17 00:00:00 2001 From: Gabriel Arakaki Giovanini Date: Wed, 19 Jul 2023 20:12:07 +0200 Subject: feat: Move register from `html/template` to qtpl --- pkg/view/auth.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'pkg') diff --git a/pkg/view/auth.go b/pkg/view/auth.go index 5d73b22..631cfb3 100644 --- a/pkg/view/auth.go +++ b/pkg/view/auth.go @@ -5,7 +5,6 @@ import ( "github.com/valyala/fasthttp" - "git.sr.ht/~gabrielgio/img" "git.sr.ht/~gabrielgio/img/pkg/ext" "git.sr.ht/~gabrielgio/img/pkg/service" "git.sr.ht/~gabrielgio/img/templates" @@ -71,7 +70,8 @@ func Index(ctx *fasthttp.RequestCtx) { } func (v *AuthView) InitialRegisterView(ctx *fasthttp.RequestCtx) error { - return img.Render[interface{}](ctx, "register.html", nil) + templates.WritePageTemplate(ctx, &templates.RegisterPage{}) + return nil } func (v *AuthView) InitialRegister(ctx *fasthttp.RequestCtx) error { -- cgit v1.2.3