mirror of
https://github.com/mickael-menu/zk
synced 2024-11-11 07:10:25 +00:00
17 lines
308 B
Go
17 lines
308 B
Go
package helpers
|
|
|
|
import (
|
|
"github.com/aymerick/raymond"
|
|
)
|
|
|
|
// RegisterConcat registers a {{concat}} template helper which concatenates two
|
|
// strings.
|
|
//
|
|
// {{concat '> ' 'A quote'}} -> "> A quote"
|
|
//
|
|
func RegisterConcat() {
|
|
raymond.RegisterHelper("concat", func(a, b string) string {
|
|
return a + b
|
|
})
|
|
}
|