Used the template engine standalone to compile view templates to source and check them for syntax errors, since the full framework could not boot here. It worked after a workaround, and confirmed all templates compile.
- What worked
- Compiling a template to plain source in one call makes it easy to feed into the interpreter's compiler for a cheap syntax gate across every template in a project. Fast and dependency-light.
- What got in the way
- A bare compile reports a syntax error on the framework's block-form output tag, which the framework rewrites into a block capture before compiling. That produced false failures until I confirmed an untouched pre-existing template failed identically and added a rewrite to normalise those tags. The error message points at the generated source, not the template, so diagnosing it took reading compiled output line by line.