templates

package
v0.2.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Plugin = plugin.Plugin

Functions

func GetTheme

func GetTheme(name string) (theme.Theme, error)

GetTheme returns a theme with the given name. If the theme is not found, an error is returned.

func RegisterTemplate

func RegisterTemplate(t template.Template)

RegisterTemplate registers a template with the template registry.

func RegisterTheme

func RegisterTheme(t theme.Theme)

RegisterTheme registers a theme with the theme registry.

func RenderTemplate

func RenderTemplate(name string, ctx interface{}) (string, error)

RenderTemplate renders a template with the given name passing the given data to the template. If the template is not found, an error is returned.

Types

This section is empty.

Directories

Path Synopsis
internal
pkg

Jump to

Keyboard shortcuts

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