gintemplrenderer

package
v0.0.0-...-77ba285 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &HTMLTemplRenderer{}

Functions

This section is empty.

Types

type HTMLTemplRenderer

type HTMLTemplRenderer struct {
	FallbackHtmlRenderer render.HTMLRender
}

func (*HTMLTemplRenderer) Instance

func (r *HTMLTemplRenderer) Instance(s string, d any) render.Render

type Renderer

type Renderer struct {
	Ctx       context.Context
	Status    int
	Component templ.Component
}

func New

func New(ctx context.Context, status int, component templ.Component) *Renderer

func (Renderer) Render

func (t Renderer) Render(w http.ResponseWriter) error

func (Renderer) WriteContentType

func (t Renderer) WriteContentType(w http.ResponseWriter)

Jump to

Keyboard shortcuts

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