Help us shape the future of Go! Take the 2026 Go Developer Survey

handlebars

package
v1.7.13 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddHelper

func AddHelper(augend int, addend int) raymond.SafeString

func BraceHelper

func BraceHelper(options *raymond.Options) raymond.SafeString

func FormatHelper

func FormatHelper(value any, format string) raymond.SafeString

func IfEqualHelper

func IfEqualHelper(a, b any, options *raymond.Options) string

func IfSetHelper

func IfSetHelper(value any, options *raymond.Options) string

func IndentLengthHelper

func IndentLengthHelper(s string) raymond.SafeString

func Iterate

func Iterate[T any](value any) iter.Seq[T]

func LoadTemplate

func LoadTemplate(baseTemplate string, templateDir fs.FS) (*raymond.Template, error)

func QuoteHelper

func QuoteHelper(s string) raymond.SafeString

func RawHelper

func RawHelper(value string) raymond.SafeString

func RegisterCommonHelpers

func RegisterCommonHelpers(t *raymond.Template)

func ToLowerHelper added in v1.6.19

func ToLowerHelper(s string) raymond.SafeString

func ToUpperHelper added in v1.6.19

func ToUpperHelper(s string) raymond.SafeString

func YearHelper

func YearHelper() raymond.SafeString

Types

type Overlay

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

func NewOverlay

func NewOverlay(diskRoot string, embedded fs.FS, embeddedRoot string) *Overlay

func (*Overlay) Flush

func (ov *Overlay) Flush() error

func (*Overlay) Open

func (ov *Overlay) Open(path string) (fs.File, error)

func (*Overlay) ReadDir

func (ov *Overlay) ReadDir(path string) ([]fs.DirEntry, error)

func (*Overlay) ReadFile

func (ov *Overlay) ReadFile(path string) ([]byte, error)

type TemplateOptions

type TemplateOptions struct {
	TemplateRoot string `default:"" help:"the root of your local template files; if not specified, Alchemy will use an internal copy"`
}

Jump to

Keyboard shortcuts

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