run_template

package
v1.0.32 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2023 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Contains

func Contains(lookFor, has []string) (missing []string, allFound bool)

func InArray

func InArray(lookFor string, inArr []string) bool

func InArrayInt

func InArrayInt(lookFor int, inArr []int) bool

func IsANumber

func IsANumber(s string, www http.ResponseWriter, req *http.Request) (nv int, err error)

if n, err = IsANumber ( page, www, req ) ; err != nil {

func RunTemplate

func RunTemplate(TemplateFn string, name_of string, g_data map[string]interface{}) string

RunTemplate runs a template and get the results back as a string. This is the primary template runner for sending email.

func RunTemplateInline

func RunTemplateInline(TemplateBody string, g_data map[string]interface{}) string

func RunTemplateInlineInterface

func RunTemplateInlineInterface(TemplateBody string, g_data interface{}) string

func RunTemplateInlineString

func RunTemplateInlineString(TemplateBody string, g_data map[string]string) string

func RunTemplateString

func RunTemplateString(TemplateFn string, name_of string, g_data map[string]string) string

func ValidateTemplateHas

func ValidateTemplateHas(TemplateFn string, nameSet []string) (err error)

- check that the template has all necessary named-temlates in it. (Function)

func ValidateTemplates

func ValidateTemplates(fns ...string) (rv bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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