Drop 'tr' as a custom function.

This commit is contained in:
John Hanks
2024-02-28 06:36:26 -06:00
committed by Christian Goll
parent 8877cebf87
commit a7b5f6ac94

View File

@@ -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,