Documentation ¶
Overview ¶
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
templ: version: v0.2.778
Index ¶
- func ArchiveView(articleCount int, tags map[string]int) templ.Component
- func ArticleView(a *model.Article) templ.Component
- func ArticlesView(pd model.PageData) templ.Component
- func BaseLayout(title string, options ...func(*baseLayoutConfig)) templ.Component
- func BundleStaticAssets(filesystem fs.FS, files ...string) ([]byte, error)
- func Error(w http.ResponseWriter, r *http.Request, err error, status int, ...)
- func ErrorView(title, message string) templ.Component
- func Render(w http.ResponseWriter, r *http.Request, comp templ.Component, ...)
- func WithOpenGraphData(og model.OpenGraphData) func(*baseLayoutConfig)
- func WithStatus(status int) func(*renderTemplConfig)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BaseLayout ¶
`BaseLayout` is a wrapper that allows function opts, and just passes through to the `baseLayout` templ component
func BundleStaticAssets ¶
func WithOpenGraphData ¶
func WithOpenGraphData(og model.OpenGraphData) func(*baseLayoutConfig)
func WithStatus ¶
func WithStatus(status int) func(*renderTemplConfig)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.