digestlayouts

package
v0.6.1 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Default

func Default() string

Default returns the name of the default layout, used when none is specified.

func Valid

func Valid(name string) bool

Valid reports whether name is a known layout.

Types

type Layout

type Layout struct {
	Name        string
	Description string
}

Layout names a template set (page structure) for the digest HTML output. A layout is a full set of page templates living under the notification package's templates/<name>/ directory. Color palettes are a separate, client-side concern (see pkg/digestthemes and the in-page theme dropdown); this registry exists so the CLI can validate and list the layouts the server can render.

func All

func All() []Layout

All returns all available layouts in display order.

func Get

func Get(name string) (Layout, bool)

Get returns the Layout for the given name and whether it was found.

Jump to

Keyboard shortcuts

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