templates

package
v1.32.0 Latest Latest
Warning

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

Go to latest
Published: May 14, 2026 License: MIT Imports: 7 Imported by: 0

README

Templates

  • RenderHTMLTemplate: Renders an HTML template with dynamic values.
  • RenderText: Renders a text template with dynamic values.

Examples:

For examples of each function, please checkout EXAMPLES.md


Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCustomFuncMap

func GetCustomFuncMap() textTemplate.FuncMap

GetCustomFuncMap returns a map of custom functions

func RenderHTMLTemplate added in v0.7.0

func RenderHTMLTemplate(tmpl string, data interface{}) (string, error)

RenderHTMLTemplate processes an HTML template with the provided data.

func RenderText

func RenderText(tmpl string, data interface{}) (string, error)

RenderText processes a text template with the provided data.

Types

This section is empty.

Jump to

Keyboard shortcuts

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