diff options
author | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-19 20:12:07 +0200 |
---|---|---|
committer | Gabriel Arakaki Giovanini <mail@gabrielgio.me> | 2023-07-19 20:12:07 +0200 |
commit | e359eaaebd7270476075ca9e08b7b53fb9e69f24 (patch) | |
tree | 74f17671b47873316301d8692cee4673e77865ba /pkg | |
parent | 1d9d5f40fe4092657f529bdba18f6f52511eea00 (diff) | |
download | lens-e359eaaebd7270476075ca9e08b7b53fb9e69f24.tar.gz lens-e359eaaebd7270476075ca9e08b7b53fb9e69f24.tar.bz2 lens-e359eaaebd7270476075ca9e08b7b53fb9e69f24.zip |
feat: Move register from `html/template` to qtpl
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/view/auth.go | 4 |
1 files changed, 2 insertions, 2 deletions
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 { |