web

package
v1.13.3 Latest Latest
Warning

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

Go to latest
Published: Sep 5, 2026 License: 0BSD Imports: 12 Imported by: 0

Documentation

Overview

Package web holds the server-rendered templates and static assets for the read-only UI. No JavaScript, no build step.

Index

Constants

This section is empty.

Variables

View Source
var FaviconSVG []byte
View Source
var FontFS embed.FS
View Source
var StyleCSS []byte

Functions

func Pages added in v1.11.0

func Pages() []string

Pages lists the page template names, for tests that render each one.

func Render

func Render(w io.Writer, page string, data any) error

Render executes the named page template with the shared layout.

func TemplateSource added in v1.13.2

func TemplateSource(name string) (string, error)

TemplateSource returns a template's raw text, for tests that inspect the markup rather than the rendered output — an accessibility rule about labels and ids is a property of the source, and holds whatever data a page is given.

Types

This section is empty.

Source Files

  • web.go

Jump to

Keyboard shortcuts

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