html

package
v0.0.0-...-3811ee0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(config Config) (fire.Renderer, error)

Types

type Config

type Config struct {
	// The directory to get views from. Required.
	ViewsPath string

	// The default layout to use when none is provided. Defaults to "layout.html".
	DefaultLayout string

	// Optional additional functions to register to the template's function map.
	Functions template.FuncMap

	// Whether to monitor the views directory for changes and automatically
	// re-parse templates. Defaults to false.
	MonitorChanges bool

	// Which logger to use for any internal log purposes. Defaults to fire.Logger.
	Logger fasthttp.Logger
}

type TemplateContext

type TemplateContext struct {
	Context fire.Ctx
	Writer  io.Writer
	Data    any
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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