render

package
v0.0.0-...-523bed9 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 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(templateData *models.TemplateData) *models.TemplateData

func CreateTemplateCache

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

Creates a template cache as a map

func NewTemplates

func NewTemplates(appLocal *config.AppConfig)

func RenderTemplate

func RenderTemplate(rw http.ResponseWriter, templateTitle string, templateData *models.TemplateData)

RenderTemplate renders html/templates inside templates folder

Types

This section is empty.

Jump to

Keyboard shortcuts

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