tmplfunc

package
v0.3.10 Latest Latest
Warning

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

Go to latest
Published: Apr 19, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Overview

Package tmplfunc contains extension functions for templates

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DerefBool

func DerefBool(b *bool) bool

func DerefFloat32

func DerefFloat32(i *float32, nilValue float32) float32

func DerefInt

func DerefInt(i *int, nilValue int) int

func DerefString

func DerefString(s *string, nilValue string) string

Types

type HashedNamers

type HashedNamers struct {
	AppHashed    func(filename string) string
	StaticHashed func(filename string) string
}

func NewHashedNamers

func NewHashedNamers(appURLPrefix, staticURLPrefix string, embeds godest.Embeds) HashedNamers

type TurboStreamSigner added in v0.1.4

type TurboStreamSigner func(streamName string) (hash string)

Jump to

Keyboard shortcuts

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