Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions docs/codegen.md
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,10 @@ This output in turn is passed to the `metrics.md.j2` template, evaluated by the

## Tips and Tricks

#### Mark generated files

Add a short header comment in each template output noting that the file is generated and which template produced it. This helps downstream users avoid hand-editing generated artifacts and makes it easier to trace changes back to the source template.

#### Use `debug()`

Jinja2 can be overwhelming and hard to discover. Try putting `debug()` somewhere in your code:
Expand Down