template

package
v0.0.0-...-70a9c39 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2025 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MultiHandlebars

type MultiHandlebars struct {
	*handlebars.Engine
	// contains filtered or unexported fields
}

MultiHandlebars is a custom handlebars engine that supports multiple template directories

func New

func New(viewsDir, fallbackDir string, extension string, logger *zap.Logger) *MultiHandlebars

New creates a new MultiHandlebars engine

func (*MultiHandlebars) Load

func (e *MultiHandlebars) Load() error

Load implements the template.Engine interface

func (*MultiHandlebars) Render

func (e *MultiHandlebars) Render(out io.Writer, template string, binding interface{}, layout ...string) error

Render implements the template.Engine interface

Jump to

Keyboard shortcuts

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