view

package
v0.13.66 Latest Latest
Warning

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

Go to latest
Published: Sep 24, 2025 License: BSD-3-Clause Imports: 9 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Templates

func Templates(embedfsys embed.FS, dir path.Relative, verbose bool) *templates

Types

type View

type View struct {
	Name     string
	Template *templ.Template
	// contains filtered or unexported fields
}

func New added in v0.13.42

func New(name string) (v View)

func (*View) Add added in v0.13.42

func (t *View) Add(s html.Pos) html.Pos

func (*View) Finish added in v0.13.42

func (t *View) Finish() html.HTML

alternative way to set predefined setters

func (*View) HTML added in v0.13.42

func (t *View) HTML(name string) html.Pos

func (*View) Set

func (t *View) Set(setter ...templ.Setter) html.HTML

func (*View) SingleAttr added in v0.13.60

func (t *View) SingleAttr(key, value string) html.Pos

func (*View) Text added in v0.13.42

func (t *View) Text(name string) html.Pos

Jump to

Keyboard shortcuts

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