Directs a ValueRenderer to output text as-is in place of this directive.
Known subtypes:
Known usages:
All versions:
RenderDirective is an escape hatch for exceptional cases.
It gives full control over how a value is rendered
without having to manipulate output.text as a whole.
It is the user's responsibility to ensure that the resulting output is well-formed.
Example:
name = "Pigeon"
hobby = "singing"
output {
renderer = new JsonRenderer {
converters {
// render String values without quotes (not valid JSON)
[String] = (str) -> new RenderDirective { text = str }
}
}
}
Directs a
ValueRenderer
to outputtext
as-is in place of this directive.