Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HTMLTemplate ¶
type HTMLTemplate struct {
// contains filtered or unexported fields
}
HTMLTemplate is a wrapper around html/template package
func NewHTMLTemplate ¶
func NewHTMLTemplate() *HTMLTemplate
NewHTMLTemplate returns a new HTMLTemplate
func (*HTMLTemplate) ExecuteTemplate ¶
func (ht *HTMLTemplate) ExecuteTemplate(rw io.Writer, path string, data interface{})
ExecuteTemplate wraps the html/template ExecuteTemplate function
type MockTemplate ¶
type MockTemplate struct{}
MockTemplate mocks the template interface wrapper
func (*MockTemplate) ExecuteTemplate ¶
func (mt *MockTemplate) ExecuteTemplate(rw io.Writer, path string, data interface{})
ExecuteTemplate write the data to the io.Writer
Click to show internal directories.
Click to hide internal directories.