staticfiles

package
v0.16.4 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2024 License: AGPL-3.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EmbedFile

func EmbedFile(a *air.Air, path string, file string)

func EmbedFiles

func EmbedFiles(a *air.Air, prefix string)

Types

type Renderer

type Renderer struct {
	LeftDelimeter  string
	RightDelimeter string
	// contains filtered or unexported fields
}

func (*Renderer) Load

func (r *Renderer) Load(fs embed.FS) error

func (*Renderer) Render

func (r *Renderer) Render(m map[string]interface{}, templates ...string) (string, error)

Jump to

Keyboard shortcuts

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