mirror of
https://github.com/mickael-menu/zk
synced 2024-11-11 07:10:25 +00:00
08cc4a3c3f
Filter notes by their tags using `--tag "history, europe"`. To match notes associated with either tags, use a pipe `|` or `OR` (all caps), e.g. `--tag "inbox OR todo"`.
18 lines
378 B
Go
18 lines
378 B
Go
package helpers
|
|
|
|
import (
|
|
"strings"
|
|
|
|
"github.com/aymerick/raymond"
|
|
)
|
|
|
|
// RegisterJoin registers a {{join}} template helper which concatenates list
|
|
// items with the given separator.
|
|
//
|
|
// {{join list ', '}} -> item1, item2, item3
|
|
func RegisterJoin() {
|
|
raymond.RegisterHelper("join", func(list []string, delimiter string) string {
|
|
return strings.Join(list, delimiter)
|
|
})
|
|
}
|