view

package
v0.0.0-...-98c6263 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 24, 2024 License: MIT Imports: 12 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArchiveView

func ArchiveView(articleCount int, tags map[string]int) templ.Component

func ArticleView

func ArticleView(a *model.Article) templ.Component

func ArticlesView

func ArticlesView(pd model.PageData) templ.Component

func BaseLayout

func BaseLayout(title string, options ...func(*baseLayoutConfig)) templ.Component

`BaseLayout` is a wrapper that allows function opts, and just passes through to the `baseLayout` templ component

func BundleStaticAssets

func BundleStaticAssets(filesystem fs.FS, files ...string) ([]byte, error)

func Error

func Error(
	w http.ResponseWriter,
	r *http.Request,
	err error,
	status int,
	title, message string,
)

func ErrorView

func ErrorView(title, message string) templ.Component

func Render

func Render(
	w http.ResponseWriter,
	r *http.Request,
	comp templ.Component,
	options ...func(*renderTemplConfig),
)

func WithOpenGraphData

func WithOpenGraphData(og model.OpenGraphData) func(*baseLayoutConfig)

func WithStatus

func WithStatus(status int) func(*renderTemplConfig)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL