providers/http: Add queryEscape, queryUnescape

This commit is contained in:
Sasha Koshka 2024-12-25 14:19:30 -05:00
parent adf77c962d
commit 88a364a155

View File

@ -21,11 +21,13 @@ func (this *Provider) Package () string {
// FuncMap fulfills the step.FuncProvider interface. // FuncMap fulfills the step.FuncProvider interface.
func (this *Provider) FuncMap () template.FuncMap { func (this *Provider) FuncMap () template.FuncMap {
return template.FuncMap { return template.FuncMap {
"statusText": http.StatusText, "statusText": http.StatusText,
"parseQuery": funcParseQuery, "parseQuery": funcParseQuery,
"parseForm": funcParseForm, "parseForm": funcParseForm,
"error": funcError, "error": funcError,
"redirect": funcRedirect, "redirect": funcRedirect,
"queryEscape": url.QueryEscape,
"queryUnescape": url.QueryUnescape,
} }
} }