From c92d5e561174bbaac9953f66b8a089aa554d7453 Mon Sep 17 00:00:00 2001 From: Spencer Brower <6729162+sbrow@users.noreply.github.com> Date: Sun, 2 Aug 2026 15:47:39 -0400 Subject: [PATCH] chore: Added diagnostic checks for common template mistakes. --- DIAGNOSTIC_TODOS.yaml | 196 ++++++++++++++++++++++++++++++++++++++++++ TODOS.md | 6 +- 2 files changed, 198 insertions(+), 4 deletions(-) create mode 100644 DIAGNOSTIC_TODOS.yaml diff --git a/DIAGNOSTIC_TODOS.yaml b/DIAGNOSTIC_TODOS.yaml new file mode 100644 index 0000000..05e9b5b --- /dev/null +++ b/DIAGNOSTIC_TODOS.yaml @@ -0,0 +1,196 @@ +name: Missing 2nd closing brace +input: | + + {{> icons/chevron_up} + {{#params.social}} + {{>* icon}} + {{/params.social}} + +

Proudly built with Thor and /home/spencer/github.com/sbrow.github.io/layouts/partials/footer.html:6:5 + | + 4 | {{#params.social}} + 5 | {{>* icon}} + 6 | {{/params.social}} + | ^^^^^^^^^^^^^^^^^^ + 7 | + 8 |

Proudly built with Thor and + {> icons/chevron_up}} + {{#params.social}} + {{>* icon}} + {{/params.social}} + +

Proudly built with Thor and +

+ {{> icons/chevron_up}} + {{#params.ocial}} + {{>* icon}} + {{/params.social}} + +

Proudly built with Thor and Tufte CSS +

+

© {{now | format "2006" }} {{params.author.name}}

+ +expected: Mostly the same, but with rust style markers at the opening and close +actual: | + [ERROR] --- [383:load_partials()] expected {{/params.ocial}}, got {{/params.social}} + --> /home/spencer/github.com/sbrow.github.io/layouts/partials/footer.html:6:5 + | + 4 | {{#params.ocial}} + 5 | {{>* icon}} + 6 | {{/params.social}} + | ^^^^^^^^^^^^^^^^^^ + 7 | + 8 |

Proudly built with Thor and +

+ {{> icons/chevron_up}} + {{#params.social}} + {{>* icon}} + + +

Proudly built with Thor and Tufte CSS +

+

© {{now | format "2006" }} {{params.author.name}}

+ +expected: "Missing closing tag '{{/params.social}}' ...opened ... expected close " +actual: Nothing. The page compiles with no warnings or errors +--- +name: empty tag +input: | + +expected: "Found an empty tag at " +actual: | + [WARN ] --- [920:warn_unknown_key()] unknown key '' + --> /home/spencer/github.com/sbrow.github.io/layouts/partials/footer.html:1:1 + | + 1 |