Documentation
¶
Index ¶
- func New[T any](defaultOpts func() *T, tpl func(*T) templ.Component, opts ...OptFunc[T]) templ.Component
- func NewWithOpts[T any](tpl func(*T) templ.Component, opts *T) templ.Component
- func Render(ctx echo.Context, status int, t templ.Component) error
- func WithOpts[T any](defaultOpts func() *T, opts ...OptFunc[T]) *T
- type Component
- type OptFunc
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
func New[T any](defaultOpts func() *T, tpl func(*T) templ.Component, opts ...OptFunc[T]) templ.Component
New creates a new templ.Component with the given options
func NewWithOpts ¶
NewWithOpts creates a new templ.Component with the given opt
Types ¶
Directories
¶
| Path | Synopsis |
|---|---|
|
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
appbar
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
appheader
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
apprail
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
appshell
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
card
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
dropdown
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
indicator
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
link
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
navbar
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
sidenav
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
modules/docs/index/views
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
modules/docs/layout
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
modules/frontend/index/views
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
app
templ: version: v0.2.680
|
templ: version: v0.2.680 |
|
base
templ: version: v0.2.680
|
templ: version: v0.2.680 |
Click to show internal directories.
Click to hide internal directories.