views

package
v0.0.0-...-fd9de40 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(env *models.Env) error

Load will accept an environment and parses all templates into cache.

func Render

func Render(w http.ResponseWriter, env *models.Env, view string, code int, p models.Page)

Render will accept a ResponseWriter, environment, template and page interface and writes the code and rendered template in HTML format to the ResponseWriter.

Types

This section is empty.

Jump to

Keyboard shortcuts

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