From ffa26298c95451639a6e01db6692d02d50b3d518 Mon Sep 17 00:00:00 2001 From: Brian Picciano Date: Sat, 18 May 2024 16:45:28 +0200 Subject: Remove most custom template functions from html templating --- src/render/methods.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/render/methods.go') diff --git a/src/render/methods.go b/src/render/methods.go index 5b2c0b1..9b5a41e 100644 --- a/src/render/methods.go +++ b/src/render/methods.go @@ -263,3 +263,7 @@ func (m *Methods) GetPath() (string, error) { } func (m *Methods) Add(a, b int) int { return a + b } + +func (m *Methods) URLIsSafe(s string) template.URL { + return template.URL(s) +} -- cgit v1.2.3