Documentation
¶
Overview ¶
templ: version: v0.3.960
Index ¶
- func Base(title string, mainComp templ.Component, ...) templ.Component
- func ImportIcon(path, iconType string) templ.Component
- func ImportScript(path string, module, useDefer bool) templ.Component
- func ImportStyle(path string) templ.Component
- func Nest(base, comp templ.Component) templ.Component
- type BaseConfig
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Base ¶
func Base( title string, mainComp templ.Component, headerComps, bodyComps []templ.Component, config *BaseConfig, ) templ.Component
Base is the base for all. It is recommended
func ImportIcon ¶
func ImportStyle ¶
Types ¶
type BaseConfig ¶ added in v0.8.0
type BaseConfig struct {
// Lang sets the language.
Lang string
// CharSet sets a meta tag with charset attribute. Default is UTF-8.
CharSet string
// NoViewport disables `<meta name="viewport" content="width=device-width, initial-scale=1.0"/>`
NoViewport bool
}
BaseConfig is the configuration for temfest.Base
Click to show internal directories.
Click to hide internal directories.