Skip to content

Commit

Permalink
add urlunescape func
Browse files Browse the repository at this point in the history
  • Loading branch information
lemm-e committed Nov 11, 2021
1 parent 10dcb51 commit e37f6d0
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions common/templates/context.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,16 @@ var (
"toByte": ToByte,

// string manipulation
"joinStr": joinStrings,
"lower": strings.ToLower,
"upper": strings.ToUpper,
"slice": slice,
"urlescape": url.PathEscape,
"split": strings.Split,
"title": strings.Title,
"hasPrefix": strings.HasPrefix,
"hasSuffix": strings.HasSuffix,
"joinStr": joinStrings,
"lower": strings.ToLower,
"upper": strings.ToUpper,
"slice": slice,
"urlescape": url.PathEscape,
"urlunescape": url.PathUnescape,
"split": strings.Split,
"title": strings.Title,
"hasPrefix": strings.HasPrefix,
"hasSuffix": strings.HasSuffix,

// math
"add": add,
Expand Down

0 comments on commit e37f6d0

Please sign in to comment.