Documentation
¶
Index ¶
- func A(nodes ...weaver.Node) weaver.Node
- func Abbr(nodes ...weaver.Node) weaver.Node
- func Address(nodes ...weaver.Node) weaver.Node
- func Article(nodes ...weaver.Node) weaver.Node
- func Aside(nodes ...weaver.Node) weaver.Node
- func Audio(nodes ...weaver.Node) weaver.Node
- func B(nodes ...weaver.Node) weaver.Node
- func Base(nodes ...weaver.Node) weaver.Node
- func Blockquote(nodes ...weaver.Node) weaver.Node
- func Body(nodes ...weaver.Node) weaver.Node
- func Br(nodes ...weaver.Node) weaver.Node
- func Button(nodes ...weaver.Node) weaver.Node
- func Canvas(nodes ...weaver.Node) weaver.Node
- func Code(nodes ...weaver.Node) weaver.Node
- func Datalist(nodes ...weaver.Node) weaver.Node
- func Dd(nodes ...weaver.Node) weaver.Node
- func Del(nodes ...weaver.Node) weaver.Node
- func Details(nodes ...weaver.Node) weaver.Node
- func Dialog(nodes ...weaver.Node) weaver.Node
- func Div(nodes ...weaver.Node) weaver.Node
- func Dl(nodes ...weaver.Node) weaver.Node
- func Dt(nodes ...weaver.Node) weaver.Node
- func Each[T any](items []T, fn func(T) weaver.Node) weaver.Node
- func Em(nodes ...weaver.Node) weaver.Node
- func Fieldset(nodes ...weaver.Node) weaver.Node
- func Figcaption(nodes ...weaver.Node) weaver.Node
- func Figure(nodes ...weaver.Node) weaver.Node
- func Footer(nodes ...weaver.Node) weaver.Node
- func Form(nodes ...weaver.Node) weaver.Node
- func Fragment(nodes ...weaver.Node) weaver.Node
- func H1(nodes ...weaver.Node) weaver.Node
- func H2(nodes ...weaver.Node) weaver.Node
- func H3(nodes ...weaver.Node) weaver.Node
- func H4(nodes ...weaver.Node) weaver.Node
- func H5(nodes ...weaver.Node) weaver.Node
- func H6(nodes ...weaver.Node) weaver.Node
- func Head(nodes ...weaver.Node) weaver.Node
- func Header(nodes ...weaver.Node) weaver.Node
- func Hr(nodes ...weaver.Node) weaver.Node
- func Html(nodes ...weaver.Node) weaver.Node
- func I(nodes ...weaver.Node) weaver.Node
- func If(condition bool, thenFunc func() weaver.Node) weaver.Node
- func IfElse(condition bool, thenFunc func() weaver.Node, elseFunc func() weaver.Node) weaver.Node
- func Iframe(nodes ...weaver.Node) weaver.Node
- func Img(nodes ...weaver.Node) weaver.Node
- func Input(nodes ...weaver.Node) weaver.Node
- func Ins(nodes ...weaver.Node) weaver.Node
- func Label(nodes ...weaver.Node) weaver.Node
- func Legend(nodes ...weaver.Node) weaver.Node
- func Li(nodes ...weaver.Node) weaver.Node
- func Link(nodes ...weaver.Node) weaver.Node
- func Main(nodes ...weaver.Node) weaver.Node
- func Mark(nodes ...weaver.Node) weaver.Node
- func Meta(nodes ...weaver.Node) weaver.Node
- func Meter(nodes ...weaver.Node) weaver.Node
- func Nav(nodes ...weaver.Node) weaver.Node
- func Ol(nodes ...weaver.Node) weaver.Node
- func Optgroup(nodes ...weaver.Node) weaver.Node
- func Option(nodes ...weaver.Node) weaver.Node
- func P(nodes ...weaver.Node) weaver.Node
- func Pre(nodes ...weaver.Node) weaver.Node
- func Progress(nodes ...weaver.Node) weaver.Node
- func Script(nodes ...weaver.Node) weaver.Node
- func Section(nodes ...weaver.Node) weaver.Node
- func Select(nodes ...weaver.Node) weaver.Node
- func Small(nodes ...weaver.Node) weaver.Node
- func Span(nodes ...weaver.Node) weaver.Node
- func Strong(nodes ...weaver.Node) weaver.Node
- func Style(nodes ...weaver.Node) weaver.Node
- func Sub(nodes ...weaver.Node) weaver.Node
- func Summary(nodes ...weaver.Node) weaver.Node
- func Sup(nodes ...weaver.Node) weaver.Node
- func TBody(nodes ...weaver.Node) weaver.Node
- func TFoot(nodes ...weaver.Node) weaver.Node
- func THead(nodes ...weaver.Node) weaver.Node
- func Table(nodes ...weaver.Node) weaver.Node
- func Td(nodes ...weaver.Node) weaver.Node
- func Text(text string) weaver.Node
- func TextArea(nodes ...weaver.Node) weaver.Node
- func Th(nodes ...weaver.Node) weaver.Node
- func Time(nodes ...weaver.Node) weaver.Node
- func Title(title string) weaver.Node
- func Tr(nodes ...weaver.Node) weaver.Node
- func U(nodes ...weaver.Node) weaver.Node
- func Ul(nodes ...weaver.Node) weaver.Node
- func UnsafeRawText(text string) weaver.Node
- func Video(nodes ...weaver.Node) weaver.Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func A ¶
A creates the HTML <a> element (or anchor element), which with its href attribute creates a hyperlink to web pages, files, email addresses, locations in the same page, or anything else a URL can address.
func Address ¶
Address creates the HTML <address> element indicating that the enclosed HTML provides contact information for a person or people, or for an organization.
func Article ¶
Article creates the HTML <article> element representing a self-contained composition in a document, page, application, or site, which is intended to be independently distributable or reusable.
func Aside ¶
Aside creates the HTML <aside> element representing a portion of a document whose content is only indirectly related to the document's main content.
func B ¶
B creates the HTML <b> element used to draw the reader's attention to the element's contents, which are not otherwise granted special importance.
func Base ¶
Base creates the HTML <base> element specifying the base URL to use for all relative URLs in a document.
func Blockquote ¶
Blockquote creates the HTML <blockquote> element indicating that the enclosed text is an extended quotation. Usually, this is rendered visually by indentation.
func Body ¶
Body creates the HTML <body> element representing the content of an HTML document. There can be only one <body> element in a document.
func Button ¶
Button creates the HTML <button> element as an interactive element activated by a user with a mouse, keyboard, finger, voice command, or other assistive technology. Once activated, it then performs an action, such as submitting a form or opening a dialog.
func Canvas ¶
Canvas creates the HTML <canvas> element used to draw graphics, on the fly, via JavaScript.
func Code ¶
Code creates the HTML <code> element displaying its contents styled in a fashion intended to indicate that the text is a short fragment of computer code.
func Datalist ¶
Datalist creates the HTML <datalist> element containing a set of <option> elements that represent the permissible or recommended options available to choose from within other controls.
func Dd ¶
Dd creates the HTML <dd> element providing the description, definition, or value for the preceding term (<dt>) in a description list (<dl>).
func Del ¶
Del creates the HTML <del> element representing a range of text that has been deleted from a document.
func Details ¶
Details creates the HTML <details> element creating a disclosure widget in which information is visible only when the widget is toggled into an "open" state.
func Dialog ¶
Dialog creates the HTML <dialog> element representing a dialog box or other interactive component, such as a dismissible alert, inspector, or subwindow.
func Div ¶
Div creates the HTML <div> element as the generic container for flow content. It has no effect on the content or layout until styled in some way using CSS.
func Dl ¶
Dl creates the HTML <dl> element representing a description list. The element encloses a list of groups of terms (specified using the <dt> element) and descriptions (provided by <dd> elements).
func Dt ¶
Dt creates the HTML <dt> element specifying a term in a description or definition list, and as such must be used inside a <dl> element.
func Em ¶
Em creates the HTML <em> element marking text that has stress emphasis. The <em> element can be nested, with each level of nesting indicating a greater degree of emphasis.
func Fieldset ¶
Fieldset creates the HTML <fieldset> element used to group several controls as well as labels (<label>) within a web form.
func Figcaption ¶
Figcaption creates the HTML <figcaption> element representing a caption or legend describing the rest of the contents of its parent <figure> element, providing the <figure> an accessible name.
func Figure ¶
Figure creates the HTML <figure> element representing self-contained content, potentially with an optional caption, which is specified using the <figcaption> element. The figure, its caption, and its contents are referenced as a single unit.
func Footer ¶
Footer creates the HTML <footer> element representing a footer for its nearest ancestor sectioning content or sectioning root element.
func Form ¶
Form creates the HTML <form> element representing a document section containing interactive controls for submitting information.
func Head ¶
Head creates the HTML <head> element containing machine-readable information (metadata) about the document, like its title, scripts, and style sheets.
func Header ¶
Header creates the HTML <header> element representing introductory content, typically a group of introductory or navigational aids.
func Hr ¶
Hr creates the HTML <hr> element representing a thematic break between paragraph-level elements.
func Html ¶
Html creates the HTML <html> element representing the root (top-level element) of an HTML document. All other elements must be descendants of this element.
func I ¶
I creates the HTML <i> element representing a range of text that is set off from the normal text for some reason, such as idiomatic text, technical terms, taxonomic designations, among others.
func IfElse ¶
IfElse returns the node provided by the first closure when the condition is true, otherwise it calls the else closure
func Iframe ¶
Iframe creates the HTML <iframe> element representing a nested browsing context, embedding another HTML page into the current one.
func Input ¶
Input creates the HTML <input> element used to create interactive controls for web-based forms in order to accept data from the user.
func Ins ¶
Ins creates the HTML <ins> element representing a range of text that has been added to a document.
func Label ¶
Label creates the HTML <label> element representing a caption for an item in a user interface.
func Legend ¶
Legend creates the HTML <legend> element representing a caption for the content of its parent <fieldset>.
func Link ¶
Link creates the HTML <link> element specifying relationships between the current document and an external resource.
func Main ¶
Main creates the HTML <main> element representing the dominant content of the <body> of a document.
func Mark ¶
Mark creates the HTML <mark> element representing text which is marked or highlighted for reference or notation purposes.
func Meta ¶
Meta creates the HTML <meta> element representing metadata that cannot be represented by other HTML meta-related elements.
func Meter ¶
Meter creates the HTML <meter> element representing either a scalar value within a known range or a fractional value.
func Nav ¶
Nav creates the HTML <nav> element representing a section of a page whose purpose is to provide navigation links.
func Ol ¶
Ol creates the HTML <ol> element representing an ordered list of items — typically rendered as a numbered list.
func Optgroup ¶
Optgroup creates the HTML <optgroup> element creating a grouping of options within a <select> element.
func Option ¶
Option creates the HTML <option> element used to define an item contained in a <select>, an <optgroup>, or a <datalist> element.
func Pre ¶
Pre creates the HTML <pre> element representing preformatted text which is to be presented exactly as written in the HTML file.
func Progress ¶
Progress creates the HTML <progress> element displaying an indicator showing the completion progress of a task, typically displayed as a progress bar.
func Script ¶
Script creates the HTML <script> element used to embed executable code or data; this is typically used to embed or refer to JavaScript code.
func Section ¶
Section creates the HTML <section> element representing a generic standalone section of a document.
func Select ¶
Select creates the HTML <select> element representing a control that provides a menu of options.
func Small ¶
Small creates the HTML <small> element representing side-comments and small print, like copyright and legal text, independent of its styled presentation.
func Span ¶
Span creates the HTML <span> element as a generic inline container for phrasing content.
func Strong ¶
Strong creates the HTML <strong> element indicating that its contents have strong importance, seriousness, or urgency.
func Style ¶
Style creates the HTML <style> element containing style information for a document, or part of a document.
func Sub ¶
Sub creates the HTML <sub> element specifying inline text which should be displayed as subscript for solely typographical reasons.
func Summary ¶
Summary creates the HTML <summary> element specifying a summary, caption, or legend for a <details> element's disclosure box.
func Sup ¶
Sup creates the HTML <sup> element specifying inline text which is to be displayed as superscript for solely typographical reasons.
func TBody ¶
TBody creates the HTML <tbody> element encapsulating a set of table rows (<tr> elements), indicating that they comprise the body of the table (<table>).
func TFoot ¶
TFoot creates the HTML <tfoot> element defining a set of rows summarizing the columns of the table.
func THead ¶
THead creates the HTML <thead> element defining a set of rows defining the head of the columns of the table.
func Table ¶
Table creates the HTML <table> element representing tabular data — that is, information presented in a two-dimensional table comprised of rows and columns of cells containing data.
func TextArea ¶
TextArea creates the HTML <textarea> element representing a multi-line plain-text editing control.
func Title ¶
Title creates the HTML <title> element defining the document's title that is shown in a browser's title bar or a page's tab.
func U ¶
U creates the HTML <u> element representing text that should be stylistically different from normal text, typically rendered as underlined.
func UnsafeRawText ¶
UnsafeRawText returns unescaped text directly into the output
Types ¶
This section is empty.