Flutter-Bounty-Hunters / static_shock

A static site generator for Dart.
MIT License
59 stars 5 forks source link

[Shock] - Run pre-flight checks on Jinja template rendering #58

Open matthew-carroll opened 11 months ago

matthew-carroll commented 11 months ago

It's easy to forget to provide a property that's needed for a Jinja layout, or to have a typo in a property name. The Jinja layout system throws obtuse error messages that make it difficult to track down template issues.

Run pre-flight checks for every Jinja layout that checks that all template properties are available before applying the layout. Or, configure the layout system so that we get much more useful error messages.