class

Hwaro::Content::Processors::TemplateContext

Inherits Reference / Object

Context for template variable resolution

Constructors

new(page : Models::Page, config : Models::Config)
Source

Instance methods

add(name : String, value : Crinja::Value)

Add a pre-built Crinja::Value to the context

Source
add(name : String, value : String | Bool | Int32 | Int64 | Nil)

Add a scalar value (String, Bool, Int, Nil) to the context

Source
add(name : String, value : Array(String))

Add an array of strings to the context

Source
add(name : String, value : Hash(String, String))

Add a string-keyed hash to the context

Source
config
Source
page
Source
to_crinja_vars

Convert to Crinja variables hash

Source
variables
Source