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