Documentation ¶
Index ¶
- type Config
- type Engine
- func (e *Engine) AddFastFunc(name string, fn jet.Func) *Engine
- func (e *Engine) AddFunc(name string, fn interface{}) *Engine
- func (e *Engine) AddGlobal(name string, value string) *Engine
- func (e *Engine) Load() error
- func (e *Engine) Render(out io.Writer, template string, binding interface{}, layout ...string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Directory string Extension string Development bool HTTPFileSys http.FileSystem }
Config struct
type Engine ¶
type Engine struct { Templates *jet.Set // contains filtered or unexported fields }
Engine struct
func (*Engine) AddFastFunc ¶ added in v1.2.0
AddFastFunc adds a Jet fast function Signature: func(jet.Arguments) reflect.Value
func (*Engine) AddFunc ¶
AddFunc adds the function to the template's function map. It is legal to overwrite elements of the default actions From: gofiber/template
Click to show internal directories.
Click to hide internal directories.