gintemplrenderer

package
v0.0.0-...-22d5775 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2024 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Default = &Renderer{}

Functions

This section is empty.

Types

type Renderer

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

func New

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

func (*Renderer) Instance

func (t *Renderer) Instance(name string, data any) render.Render

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