Drop 'tr' as a custom function.
This commit is contained in:
committed by
Christian Goll
parent
8877cebf87
commit
a7b5f6ac94
@@ -355,9 +355,6 @@ func RenderTemplateFile(fileName string, data TemplateStruct) (
|
||||
|
||||
// Build our FuncMap
|
||||
funcMap := template.FuncMap{
|
||||
"tr": func(source, old, new string) string {
|
||||
return strings.Replace(source, old, new, -1)
|
||||
},
|
||||
"Include": templateFileInclude,
|
||||
"IncludeFrom": templateContainerFileInclude,
|
||||
"IncludeBlock": templateFileBlock,
|
||||
|
||||
Reference in New Issue
Block a user