render

package
v0.0.0-...-f39640c Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddDefaultTempData

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

AddDefaultTempData adds default data to template data

func CreateTemplateCache

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

func RenderTemplate

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

RenderTemplate parses a given template in the ResponseWriter

func SetupTemplates

func SetupTemplates(a *config.AppConfig)

SetupTemplates setup templates package based on AppConfig

Types

This section is empty.

Jump to

Keyboard shortcuts

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