KbTemplateOrigin

sealed interface KbTemplateOrigin(source)

Identifies which template a KbSourceLocation was captured from.

The full chain of templates active at the point of a failure is expressed as a List<KbTemplateOrigin> stored in KbSourceLocation.templateStack. The list is outermost-first: index 0 is always Root; each subsequent element is the Partial key entered next.

Inheritors

Types

Link copied to clipboard
class Partial(val key: String) : KbTemplateOrigin

A partial template loaded by the partial loader.

Link copied to clipboard

The root template — the one passed directly to KbTemplate.render.