Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TemplateSet ¶
type TemplateSet struct {
// contains filtered or unexported fields
}
TemplateSet proccessed templates container
var Templates *TemplateSet
Templates main templateset
func NewTemplateSet ¶
func NewTemplateSet(templateDir string) (*TemplateSet, error)
NewTemplateSet creates templateSet instance
func (*TemplateSet) Reload ¶
func (t *TemplateSet) Reload() error
Reload reloads all templates from templateDir
func (*TemplateSet) Render ¶
func (t *TemplateSet) Render(ctx *fasthttp.RequestCtx, templateName string, data map[string]interface{})
Render todo
type TemplateSetError ¶
type TemplateSetError struct {
Err error
}
func (*TemplateSetError) Error ¶
func (tse *TemplateSetError) Error() string
Click to show internal directories.
Click to hide internal directories.