jinja
jinja
¶
Jinja template validation checks.
Validates Jinja2 template syntax and detects undefined variables that would cause runtime errors.
Attributes¶
Classes¶
JinjaSyntaxCheck
¶
Check for Jinja template syntax errors (V001).
Attempts to parse templates and reports syntax errors with line numbers and context. This catches issues like: - Unclosed blocks ({% if ... without {% endif %}) - Unclosed expressions ({{ ... without }}) - Invalid syntax inside blocks
Functions¶
check
¶
Check Jinja syntax in templates.
Source code in src/marianne/validation/checks/jinja.py
JinjaUndefinedVariableCheck
¶
Check for undefined template variables (V101).
Warns about variables used in templates that aren't defined in the config's variables section or the built-in sheet context. Uses fuzzy matching to suggest corrections for typos.
Functions¶
check
¶
Check for undefined variables in templates.