ssr

package
v0.13.0 Latest Latest
Warning

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

Go to latest
Published: May 22, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Marshal

func Marshal(htmlPayload []byte, data map[string]any, nonce string) ([]byte, error)

Marshal injects data as a JSON script tag into the HTML payload before the </head> tag. data is enforced as map[string]any to guarantee a stable key-based contract with the client SDK. nonce is optional; if empty, the nonce attribute is omitted from the script tag.

Types

This section is empty.

Jump to

Keyboard shortcuts

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