Deterministic templating and generation support
This commit is contained in:
parent
4f010315bb
commit
1a1b5ab39c
13 changed files with 1122 additions and 7 deletions
4
examples/templates/adr-summary.data.yaml
Normal file
4
examples/templates/adr-summary.data.yaml
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
title: Use Deterministic Templates
|
||||
status: proposed
|
||||
context: Authors need repeatable Markdown generation before assisted generation.
|
||||
decision: Use small data-bound templates and keep provider hooks external.
|
||||
7
examples/templates/adr-summary.generation.md
Normal file
7
examples/templates/adr-summary.generation.md
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
# ADR Summary Generation
|
||||
|
||||
```yaml generation
|
||||
template: adr-summary.template.md
|
||||
data_file: adr-summary.data.yaml
|
||||
output: adr-summary.generated.md
|
||||
```
|
||||
11
examples/templates/adr-summary.template.md
Normal file
11
examples/templates/adr-summary.template.md
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
# {{title}}
|
||||
|
||||
Status: {{status}}
|
||||
|
||||
## Context
|
||||
|
||||
{{context}}
|
||||
|
||||
## Decision
|
||||
|
||||
{{decision}}
|
||||
Loading…
Add table
Add a link
Reference in a new issue