Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new main element with optional child nodes Example: primary.New() Renders: <main></main>
func RawText ¶
func RawText(str string) *element
RawText Creates a new main element with raw text content Example: primary.RawText("<h1>Title</h1><p>Content</p>") Renders: <main><h1>Title</h1><p>Content</p></main>
func RawTextf ¶
RawTextf Creates a new main element with formatted raw text content as unescaped HTML using text.RawTextf. Example: primary.RawTextf("Hello <em>%s</em>", "World") Renders: <main>Hello <em>World</em></main>
func Static ¶
func Static(str string) *element
Static Creates a new main element with static text content. Example: primary.Static("Hello World") Renders: <main>Hello World</main>
Types ¶
Click to show internal directories.
Click to hide internal directories.