class

Stacker::Context

Inherits Reference < Object

Constructors

new(root_dir : String)

Context is a wrapper around Crinja.

It creates and setup a new Crinja environment to compile Jinja templates.

Filters and functions defined under src/runtime will be automaticaly loaded.

Source

Class methods

crinja_info
Source

Instance methods

crinja_info
Source
env

Retrieve the Crinja runtime instance

Source
root_dir

Retrieve the Crinja runtime root dir

Source
template(file : String) : Crinja::Template

Return the parsed template for file, parsing it only when it is unknown or has changed on disk.

Parsing accounts for a significant share of a stack build (measured at ~38% of the render time), and pillar templates change far less often than they are rendered.

Source