Skip to main content

Module context

Module context 

Source
Expand description

Polymorphic key-value Context and the Value enum (Null, Bool, Number, String, List, Map) that templates substitute. Supports dot-notation lookup via context::Context::get_path. Polymorphic key-value Context and the Value enum (Null, Bool, Number, String, List, Map) that templates substitute.

§Context Module

Stores the key-value bindings consumed by the template engine. Values are richer than plain strings: a Value enum carries Null, Bool, Number, String, List, and Map variants, and the engine resolves dot-separated lookups ({{user.name}}) by walking a Value::Map.

Structs§

Context
Represents the context for template rendering.

Enums§

Value
A polymorphic context value.

Type Aliases§

Map
The map behind Value::Map and Context.