Skip to content

Commit 81a672e

Browse files
committed
feat: allow more functions in export template
1 parent cd56940 commit 81a672e

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

kaybee/internal/tasks/export.go

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import (
55
"io/ioutil"
66
"log"
77
"os"
8+
"path"
9+
810
"path/filepath"
911
"strings"
1012
"text/template"
@@ -152,6 +154,8 @@ func (t *ExportTask) Execute() (success bool) {
152154
funcMap := template.FuncMap{
153155
"LinksAsCSV": LinksAsCSV,
154156
"JoinNotes": JoinNotes,
157+
"MatchPath": path.Match,
158+
"JoinPath": path.Join,
155159
}
156160

157161
tEach = *template.Must(template.New("each").Funcs(funcMap).Parse(s.Each))

0 commit comments

Comments
 (0)