Documentation ¶
Index ¶
- func FileSet(t *template.Template, templs []TemplateFile) (ot *template.Template, err error)
- func MustRenderToWriter(w io.Writer, text string, data interface{})
- func RenderToByte(text string, data interface{}) (b []byte, err error)
- func RenderToWriter(w io.Writer, text string, data interface{}) (err error)
- type Template
- func (templ *Template) ExecuteNameToByte(name string, data interface{}) ([]byte, error)
- func (templ *Template) ExecuteNameToHtml(name string, data interface{}) (html template.HTML, err error)
- func (templ *Template) ExecuteToByte(data interface{}) ([]byte, error)
- func (templ *Template) MustExecuteNameToHtml(name string, data interface{}) template.HTML
- func (templ *Template) MustExecuteToHtml(data interface{}) template.HTML
- type TemplateFile
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func MustRenderToWriter ¶
func RenderToByte ¶
Types ¶
type Template ¶
func MustNewSingle ¶
func (*Template) ExecuteNameToByte ¶
func (*Template) ExecuteNameToHtml ¶
func (*Template) ExecuteToByte ¶
func (*Template) MustExecuteNameToHtml ¶
func (*Template) MustExecuteToHtml ¶
type TemplateFile ¶
Click to show internal directories.
Click to hide internal directories.