Template

interface Template

A reusable, pre-processed version of some templated text. Any substitutions are discovered ahead of time and can be inspected in substitutions.

This implementation follows the same processing rules as the TemplateProcessor.

See also

Properties

Link copied to clipboard

A list of all the substitutions found within the template text. This can be used to determine what, if any, context data needs to be gathered for the call to process.

Functions

Link copied to clipboard
abstract fun process(context: DataObject): String

Processes the input template looking for all occurrences of double brace wrapped text: {{ }}