dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 45f6f745619ccc8966ac597cc7127335eb3f6cc5
parent ce9aa1e44bcc1195624ae88df60edd51a263f530
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Sun, 18 Dec 2022 15:27:49 -0800

cleanup

Diffstat:
Mpkg/template/templates.go | 42+++++++++++++++++-------------------------
1 file changed, 17 insertions(+), 25 deletions(-)

diff --git a/pkg/template/templates.go b/pkg/template/templates.go @@ -40,31 +40,23 @@ func (t *Templates) AddFn(name string, fn any) { } type templateDataStruct struct { - Bundle *i18n.Bundle - AcceptLanguage string - Lang string - Data any - VERSION string - SHA string - VersionHTML template.HTML - ShaHTML template.HTML - LogoASCII template.HTML - CSRF string - Master bool - Development bool - StripePublicKey string - PaypalEnv string - PaypalClientID string - ReCaptchaSiteKey string - SupportedLangs [][]string - BaseKeywords string - MustUpdateSoon bool - CanReadExpireDate bool - NotifCount int64 - TmplName string - AuthUser *database.User - InboxCount int64 - WallpaperImg string + Bundle *i18n.Bundle + AcceptLanguage string + Lang string + Data any + VERSION string + SHA string + VersionHTML template.HTML + ShaHTML template.HTML + LogoASCII template.HTML + CSRF string + Master bool + Development bool + BaseKeywords string + TmplName string + AuthUser *database.User + InboxCount int64 + WallpaperImg string } // Render render a template