htmlcfiber

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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) Layout

func (e *Engine) Layout(out io.Writer, name string, binding interface{}, content ...map[string]string) error

Layout will Render a layout.

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.

func (*Engine) Widget

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

Widget will Render a widget.

Jump to

Keyboard shortcuts

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