tmplext

package
v1.20250729.0 Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2025 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TmplHref = perenc.EncodeHref
View Source
var TmplUriData = perenc.EncodeUriData
View Source
var TmplUrl = perenc.EncodeUrl
View Source
var TmplUrlFragment = perenc.EncodeUrlFragment
View Source
var TmplUrlPath = perenc.EncodeUrlPath

Functions

func AddDefaultFunc

func AddDefaultFunc(fmap template.FuncMap, fsys fs.FS, up upath.UPath)

func NewTmplSvgIcon

func NewTmplSvgIcon(fsys fs.FS, up upath.UPath) func(name string) string

func TmplBase64

func TmplBase64(str string) string

func TmplDummySvgIcon

func TmplDummySvgIcon(_ string) string

func TmplFileType

func TmplFileType(name string) string

Types

type TmplOnce

type TmplOnce = func(string) bool
var DummyTmplOnce TmplOnce = func(string) bool { return true }

func NewTmplOnce

func NewTmplOnce() TmplOnce

Jump to

Keyboard shortcuts

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