Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HtmlTemplate ¶
type HtmlTemplate struct { Template // contains filtered or unexported fields }
func NewHtmlTemplate ¶
func NewHtmlTemplate(options TemplateOptions, logger common.Logger) (*HtmlTemplate, error)
func (*HtmlTemplate) CustomRenderWithOptions ¶ added in v0.4.5
func (tpl *HtmlTemplate) CustomRenderWithOptions(opts TemplateOptions) ([]byte, error)
func (*HtmlTemplate) Render ¶ added in v0.4.5
func (tpl *HtmlTemplate) Render() ([]byte, error)
func (*HtmlTemplate) RenderObject ¶ added in v0.4.6
func (tpl *HtmlTemplate) RenderObject(obj interface{}) ([]byte, error)
type TemplateOptions ¶
type TextTemplate ¶
type TextTemplate struct { Template // contains filtered or unexported fields }
func NewTextTemplate ¶
func NewTextTemplate(options TemplateOptions, logger common.Logger) (*TextTemplate, error)
func (*TextTemplate) CustomRenderWithOptions ¶ added in v0.4.5
func (tpl *TextTemplate) CustomRenderWithOptions(opts TemplateOptions) ([]byte, error)
func (*TextTemplate) Render ¶ added in v0.4.5
func (tpl *TextTemplate) Render() ([]byte, error)
func (*TextTemplate) RenderObject ¶ added in v0.4.6
func (tpl *TextTemplate) RenderObject(obj interface{}) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.