Target filter
Search Kotlin docs
  • Back
  • Tealium Prism Kotlin SDK Reference
core/com.tealium.prism.core.api.misc/TemplateProcessor/Template

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

TemplateProcessor.compile
TemplateProcessor.process

Properties

substitutions
Link copied to clipboard
abstract val substitutions: List<JsonObjectPath>

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

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

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

Generated by Dokka
(c) Tealium 2026