simplesite

package
v0.0.0-...-2501437 Latest Latest
Warning

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

Go to latest
Published: Apr 20, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HTMLAttribute

type HTMLAttribute struct {
	Name  string
	Value string
}

type HTMLTag

type HTMLTag struct {
	Name          string
	Attributes    []HTMLAttribute
	Content       string
	Close         TagClose
	RawAttributes []string
}

Simple way to render single HTML tag.

func (*HTMLTag) Render

func (t *HTMLTag) Render(ctx context.Context, w io.Writer) (err error)

func (*HTMLTag) RenderSimple

func (t *HTMLTag) RenderSimple() (res string, err error)

type TagClose

type TagClose uint8
const (
	SimpleTagClose TagClose = 0
	NoTagClose     TagClose = 1
	SelfTagClose   TagClose = 2
)

Jump to

Keyboard shortcuts

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