render

package
v0.0.0-...-ce9bc98 Latest Latest
Warning

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

Go to latest
Published: Apr 1, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefaultData

func AddDefaultData(td *models.TemplateData, r *http.Request) *models.TemplateData

AddDefaultData: Adds data for all templates

func CreateTemplateCache

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

func GetTemplateCache

func GetTemplateCache(a *config.AppConfig)

func RenderTemplate

func RenderTemplate(w http.ResponseWriter, r *http.Request, tmpl string, data *models.TemplateData)

RenderTemplate: renders a template with the given data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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