How to replace string “” in template :
Template :
“CompanyList” :[{{range $index, $element := .ListCompany }} {{if $index}}, {
“LOGOFILENAME” : “{{$element.LOGOFILENAME}}” }
{{end}}
{{end}}
]
to resulf :
“CompanyList” :[
, {
“LOGOFILENAME” : “2017\08\18\41244faf-b41c-4cc9-8f9c-3764d2aa41d9.png”
}
I changed to : “LOGOFILENAME” : “{{$element.LOGOFILENAME | replace “” “-”}}”
to error
Output : template: test:10: function “replace” not defined
help me please !! Thanks