diff options
author | Brian Picciano <mediocregopher@gmail.com> | 2024-05-18 16:45:28 +0200 |
---|---|---|
committer | Brian Picciano <mediocregopher@gmail.com> | 2024-05-18 16:45:28 +0200 |
commit | ffa26298c95451639a6e01db6692d02d50b3d518 (patch) | |
tree | 346c5aef72e60a3c2b47e9713aea7c723c116bc1 /src/render | |
parent | 93a8843e2e3391459fd333aef9e5c7617608c2b3 (diff) |
Remove most custom template functions from html templating
Diffstat (limited to 'src/render')
-rw-r--r-- | src/render/methods.go | 4 |
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) +} |