render

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Package render demonstrates ordinary Go rendering of generated block variants.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ArticleHTML

ArticleHTML renders typed article payloads and nested rich text without any reference fetches. The caller supplies access-approved populated values.

func HTML

func HTML[B interface{ BlockType() string }](w io.Writer, blocks []B) error

HTML renders single-locale page and campaign layouts using their shared block types. The element type is inferred from each generated list; no list conversion is needed. Go does not enforce exhaustiveness; the default deliberately reports new types.

Types

This section is empty.

Jump to

Keyboard shortcuts

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