ignore output in include globs

This commit is contained in:
Gregor Lohaus
2026-05-24 14:57:44 +02:00
parent 0a512cdbc3
commit 0412cea241
3 changed files with 69 additions and 25 deletions

View File

@@ -225,6 +225,14 @@ reverseDir("./output", "./templates", {
The command writes files at their original template paths, restores recorded `<@var(...)>` tokens, wraps edited inline conditional output back in the original conditional block, and restores template files that were skipped by path conditionals.
The template output directory may be inside the rendered directory, for example:
```sh
tdir reverse ./ ./reversed --include "components/**"
```
When the template output directory is inside the rendered directory, reverse snapshots included files before writing and excludes the output directory from include glob matching.
## Unmatched directives
A `<@if>` without a matching `<@endif>` throws when the renderer is initialized: