render

package
v0.6.19 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 20, 2022 License: MIT Imports: 22 Imported by: 6 modules, 11 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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 Template

type Template struct {
	// contains filtered or unexported fields
}

type TemplateOptions

type TemplateOptions struct {
	Name       string
	Object     string
	Content    string
	Files      []string
	TimeFormat string
	Pattern    string
}

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL