Expand description
Shared Tera engine + context builders.
Two contexts:
config_context— exposes onlyyui.*and theenv(name=…)function. Used while parsingconfig*.toml(vars aren’t fully resolved yet).template_context—yui.*+vars.*+env(…). Used to render*.teradotfiles after the merged config is known.
Structs§
Functions§
- config_
context - config_
render_ context template_contextplus self-referencing placeholders for the hook script vars (script_path/script_dir/script_name/script_stem/script_ext). Use this only for the config-load Tera pass, where those tokens haven’t been bound yet but should survive verbatim so the hook executor can resolve them at run time.- eval_
truthy - Evaluate a Tera expression as a truthy/falsy boolean. Accepts either a
bare expression (
yui.os == 'linux') or a pre-wrapped one ({{ yui.os == 'linux' }}); used wherever the user writes awhencondition (mount entry, render rule, marker link, file-header). - template_
context