templates

package
v0.0.0-...-d0dd730 Latest Latest
Warning

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

Go to latest
Published: Jan 15, 2019 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Templates map[string]map[string]*template.Template

Templates holds all the html templates that are used for sending e.g. emails the first key is the language, the second the name for the template

Functions

func LoadTemplates

func LoadTemplates(log *logrus.Entry)

LoadTemplates - loads existing templates

func RenderTemplateToString

func RenderTemplateToString(uc *mw.AdminContext, c *gin.Context, templateName string, langCode string, data interface{}) string

RenderTemplateToString renders the given template to a string

Types

This section is empty.

Jump to

Keyboard shortcuts

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