template

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Aug 6, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	AddonTemplate = templateFolder + "/addons"
)

Variables

This section is empty.

Functions

func GetAllFilenames

func GetAllFilenames() (files []string, err error)

func Render

func Render(folder, template string, context interface{}) (*bytes.Buffer, error)

Render renders a templates in the package `templates` folder. The templates files are embedded in build-time.

func RenderTemplate

func RenderTemplate(tpl string, context interface{}) (*bytes.Buffer, error)

Types

This section is empty.

Jump to

Keyboard shortcuts

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