template

package
v1.15.12 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2025 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DriverHTML   = "html"
	DriverCustom = "custom"
)

Variables

This section is empty.

Functions

func Get

func Get(config config.Config) (contractsmail.Template, error)

Get retrieves a cached mail template engine, creating it if it doesn't exist. This function is safe for concurrent use.

Types

type Html

type Html struct {
	// contains filtered or unexported fields
}

func NewHtml

func NewHtml(viewsPath string) *Html

func (*Html) Render

func (r *Html) Render(path string, data any) (string, error)

Jump to

Keyboard shortcuts

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