Documentation
¶
Index ¶
Constants ¶
View Source
const ( NotificationHeaderID = "notification/header" NotificationBodyID = "notification/body" )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MarkupOption ¶
func Bold ¶
func Bold(open, close string) MarkupOption
func CodeBlock ¶
func CodeBlock(open, close string) MarkupOption
func CodeInline ¶
func CodeInline(open, close string) MarkupOption
type Option ¶
type Option func(*options)
func Default ¶
func Default(topts ...TemplateOption) Option
Default allows to modify default template options.
func PerTemplate ¶
func PerTemplate(id string, topts ...TemplateOption) Option
PerTemplate allows to modify options for single templates by their id.
type TemplateOption ¶
type TemplateOption func(*templateOptions)
func ExtraFunc ¶
func ExtraFunc(name string, fn any) TemplateOption
func HTMLEscape ¶
func HTMLEscape(b bool) TemplateOption
func Markup ¶
func Markup(mopts ...MarkupOption) TemplateOption
func NewLine ¶
func NewLine(b bool) TemplateOption
type Templates ¶
type Templates struct {
// contains filtered or unexported fields
}
func (*Templates) RenderNotification ¶
Click to show internal directories.
Click to hide internal directories.