renderer

package
v0.0.0-...-d4b65f6 Latest Latest
Warning

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

Go to latest
Published: Jan 25, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefaultData

func AddDefaultData(td *models.TemplateData) *models.TemplateData

func CreateTemplateCache

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

CreateTemplateCache create a template cache

func NewTemplate

func NewTemplate(a *config.AppConfig)

NewTemplate sets the config for the template package

func RendererTemplate

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

RendererTemplate renders template using html/template

Types

This section is empty.

Jump to

Keyboard shortcuts

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