ltmpl

package
v0.0.0-...-157c9c8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMLLoader

type HTMLLoader struct {
	lfile.IteratorSource
	Trimmer
}

HTMLLoader defines a list of Globs to match and the path length to preserve. This allows for the file structure to be retained for useful template names.

func (*HTMLLoader) Load

func (l *HTMLLoader) Load() (*template.Template, error)

Load the templates

type Trimmer

type Trimmer interface {
	Trim(string) string
}

Trimmer takes a filepath and trims it to a useful portion. The lfile.PathLength type is a useful instance.

Jump to

Keyboard shortcuts

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