render

package
v0.0.0-...-c757b2e Latest Latest
Warning

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

Go to latest
Published: Apr 14, 2023 License: AGPL-3.0 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

func CreateTemplateCache

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

func NewTemplates

func NewTemplates(a *config.AppConfig)

NewTemplates set the config for the template package

func RenderTemplate

func RenderTemplate(w http.ResponseWriter, r *http.Request, templt string, td *models.TemplateData)

parseTemplate parses the teplates, render them and send them to the browser

Types

This section is empty.

Jump to

Keyboard shortcuts

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