templateview

package
v0.25.0 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NormalizeContextNumbers

func NormalizeContextNumbers(value any) any

NormalizeContextNumbers converts whole-number float64 values to int64 recursively across maps/slices to avoid float artifacts in templates.

func RenderTemplateView

func RenderTemplateView(c router.Context, template string, viewCtx router.ViewContext) error

RenderTemplateView normalizes numeric values in the provided view context before delegating to the active view renderer.

Types

This section is empty.

Jump to

Keyboard shortcuts

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