render

package
v0.0.0-...-f736add Latest Latest
Warning

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

Go to latest
Published: May 17, 2022 License: MIT Imports: 7 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

Add the default data to template data

func CreateTmplCache

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

Generate a cache as map with string and a pointer to template to render site with

func GenerateTemplates

func GenerateTemplates(c *config.AppConf)

GenerateTemplates sets the config for the render package

func RenderTemplate

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

RenderTemplate renders a template

Types

This section is empty.

Jump to

Keyboard shortcuts

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