templateset

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2021 License: MIT Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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