You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
zk/adapter/handlebars/helpers/concat.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
})
}