render

package
v0.0.0-...-5a0848e Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateTemplateCache

func CreateTemplateCache() (map[string]*template.Template, error)

func NewTemplates

func NewTemplates(a *config.AppConfig)

NewTemplates sets the config for the render package

func RenderTemplate

func RenderTemplate(w http.ResponseWriter, tmpl string, td *models.TemplateData)

RenderTemplate renders a template without cache

Types

This section is empty.

Jump to

Keyboard shortcuts

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