summaryrefslogtreecommitdiff
path: root/src/render/methods.go
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2024-05-18 16:45:28 +0200
committerBrian Picciano <mediocregopher@gmail.com>2024-05-18 16:45:28 +0200
commitffa26298c95451639a6e01db6692d02d50b3d518 (patch)
tree346c5aef72e60a3c2b47e9713aea7c723c116bc1 /src/render/methods.go
parent93a8843e2e3391459fd333aef9e5c7617608c2b3 (diff)
Remove most custom template functions from html templating
Diffstat (limited to 'src/render/methods.go')
-rw-r--r--src/render/methods.go4
1 files changed, 4 insertions, 0 deletions
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)
+}