Enhance the activity YAML validator to detect and reject Jinja2 and
Handlebars control structures, enforcing the substitution-only template
system design.
Changes:
- Add regex patterns for Jinja2 ({% %}) and Handlebars ({{# }})
- Add _check_template_syntax() method
- Integrate checks in content_blocks, questions, tokens_for_ai, hints
- Add 7 comprehensive unit tests for template validation
- All 59 activity YAMLs + SPEC.yaml pass validation (0 errors)
|
||
|---|---|---|
| .. | ||
| test_activity.py | ||
| test_activity_utils.py | ||
| test_activity_yaml_validator.py | ||
| test_app.py | ||
| test_guarded_ai_functions.py | ||
| test_models.py | ||
| test_random_buckets.py | ||
| test_yaml_loading.py | ||