Skip to content

Commit

Permalink
Adding 'replace' as a template-usable function
Browse files Browse the repository at this point in the history
  • Loading branch information
alexturek committed Sep 26, 2014
1 parent 2847e7b commit f73d957
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions template.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ func generateFile(config Config, containers Context) bool {
"groupBy": groupBy,
"groupByMulti": groupByMulti,
"split": strings.Split,
"replace": strings.Replace,
}).ParseFiles(templatePath)
if err != nil {
log.Fatalf("unable to parse template: %s", err)
Expand Down

0 comments on commit f73d957

Please sign in to comment.