KbTransform

fun interface KbTransform(source)

A pluggable transformation applied to a KpaElement inside an expression chain (e.g. {{ foo | upcase }}).

Transforms are registered with a KbEnvironment under a name and looked up at render time. Implementations receive a KbTransformScope as the receiver, giving access to coercion helpers (asString) and the active KpaElementFactory (factory) for constructing primitive results.

Functions

Link copied to clipboard

Apply this transform to input, optionally consuming arguments.