Companion

object Companion

Factory functions for each RenderData variant.

Properties

Link copied to clipboard

{}: templating runs with an empty data-set, tags resolve to empty.

Functions

Link copied to clipboard
inline fun <T> of(value: T): RenderData

Serializes value with the reified kotlinx.serialization serializer for T.

fun of(json: JsonElement): RenderData

Wraps a kotlinx.serialization JSON element; see Element.

fun <T> of(value: T, serializer: KSerializer<T>): RenderData

Serializes value with the given serializer.

Link copied to clipboard

Wraps pre-serialized JSON; see Raw.