Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new template element with optional child nodes. Example: template.New() Renders: <template></template>
func RawText ¶
func RawText(content string) *element
RawText Creates a new template element with raw text content as unescaped HTML. Example: template.RawText("<div>Template</div> content") Renders: <template><div>Template</div> content</template>
func RawTextf ¶
RawTextf Creates a new template element with formatted raw text content as unescaped HTML using text.RawTextf. Example: template.RawTextf("<div>%s</div> content", "Template") Renders: <template><div>Template</div> content</template>
func Static ¶
func Static(content string) *element
Static Creates a new template element with static text content. Example: template.Static("Hello World") Renders: <template>Hello World</template>