Documentation
¶
Index ¶
- Variables
- type AttributeComponent
- type DocComponent
- type FragmentComponent
- type HTML
- func A(content ...any) HTML
- func Abbr(content ...any) HTML
- func AddToTag(target HTML, components ...HTML) HTML
- func Address(content ...any) HTML
- func Area(content ...any) HTML
- func Article(content ...any) HTML
- func Aside(content ...any) HTML
- func Audio(content ...any) HTML
- func B(content ...any) HTML
- func Base(content ...any) HTML
- func Bdi(content ...any) HTML
- func Bdo(content ...any) HTML
- func Blockquote(content ...any) HTML
- func Body(content ...any) HTML
- func Br(content ...any) HTML
- func Button(content ...any) HTML
- func Canvas(content ...any) HTML
- func Caption(content ...any) HTML
- func Cite(content ...any) HTML
- func Code(content ...any) HTML
- func Col(content ...any) HTML
- func Colgroup(content ...any) HTML
- func Data(content ...any) HTML
- func Datalist(content ...any) HTML
- func Dd(content ...any) HTML
- func Del(content ...any) HTML
- func Details(content ...any) HTML
- func Dfn(content ...any) HTML
- func Dialog(content ...any) HTML
- func Div(content ...any) HTML
- func Dl(content ...any) HTML
- func Dt(content ...any) HTML
- func Em(content ...any) HTML
- func Embed(content ...any) HTML
- func Fencedframe(content ...any) HTML
- func Fieldset(content ...any) HTML
- func Figcaption(content ...any) HTML
- func Figure(content ...any) HTML
- func Footer(content ...any) HTML
- func Form(content ...any) HTML
- func H1(content ...any) HTML
- func H2(content ...any) HTML
- func H3(content ...any) HTML
- func H4(content ...any) HTML
- func H5(content ...any) HTML
- func H6(content ...any) HTML
- func Head(content ...any) HTML
- func Header(content ...any) HTML
- func Hgroup(content ...any) HTML
- func Hr(content ...any) HTML
- func I(content ...any) HTML
- func If(condition bool, components ...any) []HTML
- func IfLazy(condition bool, component func() HTML) HTML
- func Iframe(content ...any) HTML
- func Img(content ...any) HTML
- func Input(content ...any) HTML
- func Ins(content ...any) HTML
- func Kbd(content ...any) HTML
- func Label(content ...any) HTML
- func Legend(content ...any) HTML
- func Li(content ...any) HTML
- func Link(content ...any) HTML
- func Main(content ...any) HTML
- func Map(content ...any) HTML
- func Mark(content ...any) HTML
- func Math(content ...any) HTML
- func Menu(content ...any) HTML
- func Meta(content ...any) HTML
- func Meter(content ...any) HTML
- func Nav(content ...any) HTML
- func Noscript(content ...any) HTML
- func Object(content ...any) HTML
- func Ol(content ...any) HTML
- func Optgroup(content ...any) HTML
- func Option(content ...any) HTML
- func Output(content ...any) HTML
- func P(content ...any) HTML
- func Picture(content ...any) HTML
- func Pre(content ...any) HTML
- func Progress(content ...any) HTML
- func Q(content ...any) HTML
- func Range[T any](items []T, toComponent func(int, T) HTML) []HTML
- func Rp(content ...any) HTML
- func Rt(content ...any) HTML
- func Ruby(content ...any) HTML
- func S(content ...any) HTML
- func Samp(content ...any) HTML
- func Script(content ...any) HTML
- func Search(content ...any) HTML
- func Section(content ...any) HTML
- func Select(content ...any) HTML
- func Slot(content ...any) HTML
- func Small(content ...any) HTML
- func Source(content ...any) HTML
- func Span(content ...any) HTML
- func Strong(content ...any) HTML
- func Style(content ...any) HTML
- func Sub(content ...any) HTML
- func Summary(content ...any) HTML
- func Sup(content ...any) HTML
- func Svg(content ...any) HTML
- func Table(content ...any) HTML
- func Tbody(content ...any) HTML
- func Td(content ...any) HTML
- func Template(content ...any) HTML
- func Textarea(content ...any) HTML
- func Tfoot(content ...any) HTML
- func Th(content ...any) HTML
- func Thead(content ...any) HTML
- func Time(content ...any) HTML
- func Title(content ...any) HTML
- func Tr(content ...any) HTML
- func Track(content ...any) HTML
- func U(content ...any) HTML
- func Ul(content ...any) HTML
- func Var(content ...any) HTML
- func Video(content ...any) HTML
- func Wbr(content ...any) HTML
- type Raw
- type TagComponent
- type Text
Constants ¶
This section is empty.
Variables ¶
View Source
var X = attrs{}
Defines attributes
Functions ¶
This section is empty.
Types ¶
type AttributeComponent ¶
type AttributeComponent struct {
// contains filtered or unexported fields
}
func (*AttributeComponent) String ¶
func (a *AttributeComponent) String() string
type DocComponent ¶
type DocComponent struct {
Components []HTML
}
func Doc ¶
func Doc(components ...HTML) *DocComponent
func (*DocComponent) String ¶
func (d *DocComponent) String() string
type FragmentComponent ¶
type FragmentComponent struct {
// contains filtered or unexported fields
}
func Fragment ¶
func Fragment(components ...any) *FragmentComponent
func (*FragmentComponent) String ¶
func (f *FragmentComponent) String() string
type HTML ¶
type HTML interface {
String() string
}
func Blockquote ¶
func Fencedframe ¶
func Figcaption ¶
type TagComponent ¶
type TagComponent struct {
// contains filtered or unexported fields
}
func NewTagComponent ¶
func NewTagComponent(name string, isVoid bool, content ...HTML) *TagComponent
func (*TagComponent) String ¶
func (t *TagComponent) String() string
Source Files
¶
Click to show internal directories.
Click to hide internal directories.