gintemplrenderer

package
v0.0.0-...-9c8ad4d Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2024 License: MIT Imports: 4 Imported by: 5

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