render

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Dec 26, 2024 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetVarChar

func SetVarChar(open, close string)

Types

type Engine

type Engine struct {
	core.Engine
	// contains filtered or unexported fields
}

func New

func New(directory string) (*Engine, error)

New returns a HTML render engine for Fiber

func NewFileSystem

func NewFileSystem(fs http.FileSystem) (*Engine, error)

NewFileSystem returns a HTML render engine for Fiber with file system

func (*Engine) Load

func (e *Engine) Load() error

Load parses the templates to the engine.

func (*Engine) Render

func (e *Engine) Render(out io.Writer, name string, binding interface{}, layout ...string) error

Render will execute the template name along with the given values.

Jump to

Keyboard shortcuts

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