template

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Pongo2Renderer

type Pongo2Renderer struct {
}

Pongo2Renderer implements Renderer using the pongo2 template engine

func (*Pongo2Renderer) Render

func (r *Pongo2Renderer) Render(template string, variables map[string]interface{}) (string, error)

Render renders a template string with the given variables

type Renderer

type Renderer interface {
	Render(template string, variables map[string]interface{}) (string, error)
}

Renderer defines the interface for template rendering

func NewPongo2Renderer

func NewPongo2Renderer() Renderer

NewPongo2Renderer creates a new Pongo2Renderer with filters registered

Jump to

Keyboard shortcuts

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