htmlrender

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Oct 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const MaxSize = 16 << 20

Variables

This section is empty.

Functions

func Render

func Render(c echo.Context, cmp templ.Component) error

Render writes a templ component as an HTTP 200 HTML response.

func RenderStatus

func RenderStatus(c echo.Context, code int, cmp templ.Component) error

RenderStatus writes a templ component with a specific HTTP status code.

Types

type Buffer

type Buffer struct{ bytes.Buffer }

func (*Buffer) Write

func (b *Buffer) Write(p []byte) (int, error)

func (*Buffer) WriteString

func (b *Buffer) WriteString(s string) (int, error)

Jump to

Keyboard shortcuts

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