html

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Feb 9, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultLayoutURL = "base://document.html"

Variables

This section is empty.

Functions

func Layout

func Layout(w io.Writer, body []byte, funcs ...LayoutOptionFunc) error

Types

type LayoutOptionFunc

type LayoutOptionFunc func(opts *LayoutOptions)

func WithLayout

func WithLayout(rawURL string) LayoutOptionFunc

func WithVar

func WithVar(key string, value any) LayoutOptionFunc

func WithVars

func WithVars(vars map[string]any) LayoutOptionFunc

type LayoutOptions

type LayoutOptions struct {
	RawLayoutURL string
	Vars         map[string]any
}

func NewLayoutOptions

func NewLayoutOptions(funcs ...LayoutOptionFunc) *LayoutOptions

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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