97 lines
2.0 KiB
Plaintext
97 lines
2.0 KiB
Plaintext
---
|
|
id: {{ id }}
|
|
type: decision
|
|
title: {{ title }}
|
|
created: {{ created }}
|
|
modified: {{ modified }}
|
|
tags: [{% for tag in tags %}"{{ tag }}"{% if not loop.last %}, {% endif %}{% endfor %}]
|
|
status: {{ status | default(value="proposed") }}
|
|
{% if relates_to and relates_to | length > 0 -%}
|
|
relates_to:
|
|
{% for rel in relates_to %} - {{ rel }}
|
|
{% endfor %}
|
|
{%- endif %}
|
|
{% if depends_on and depends_on | length > 0 -%}
|
|
depends_on:
|
|
{% for dep in depends_on %} - {{ dep }}
|
|
{% endfor %}
|
|
{%- endif %}
|
|
{% if supersedes and supersedes | length > 0 -%}
|
|
supersedes:
|
|
{% for sup in supersedes %} - {{ sup }}
|
|
{% endfor %}
|
|
{%- endif %}
|
|
{% if project -%}
|
|
project: {{ project }}
|
|
{% endif -%}
|
|
context: |
|
|
{{ context | default(value="") | indent(width=2) }}
|
|
decision: |
|
|
{{ decision | default(value="") | indent(width=2) }}
|
|
{% if consequences and consequences | length > 0 -%}
|
|
consequences:
|
|
{% for consequence in consequences %} - {{ consequence }}
|
|
{% endfor %}
|
|
{%- endif %}
|
|
---
|
|
|
|
# {{ title }}
|
|
|
|
## Status
|
|
|
|
{{ status | title | default(value="Proposed") }}
|
|
|
|
{% if supersedes and supersedes | length > 0 %}
|
|
Supersedes: {% for sup in supersedes %}[[{{ sup }}]]{% if not loop.last %}, {% endif %}{% endfor %}
|
|
{% endif %}
|
|
|
|
## Context
|
|
|
|
{{ context | default(value="TODO: Describe the context and problem statement") }}
|
|
|
|
## Decision
|
|
|
|
{{ decision | default(value="TODO: Describe the decision made") }}
|
|
|
|
## Consequences
|
|
|
|
{% if consequences and consequences | length > 0 %}
|
|
{% for consequence in consequences %}
|
|
- {{ consequence }}
|
|
{% endfor %}
|
|
{% else %}
|
|
TODO: List the consequences of this decision (positive, negative, neutral)
|
|
|
|
- **Positive:**
|
|
- **Negative:**
|
|
- **Neutral:**
|
|
{% endif %}
|
|
|
|
{% if alternatives and alternatives | length > 0 %}
|
|
## Alternatives Considered
|
|
|
|
{% for alt in alternatives %}
|
|
### {{ alt.name }}
|
|
|
|
{{ alt.description }}
|
|
|
|
**Pros:**
|
|
{% for pro in alt.pros %}
|
|
- {{ pro }}
|
|
{% endfor %}
|
|
|
|
**Cons:**
|
|
{% for con in alt.cons %}
|
|
- {{ con }}
|
|
{% endfor %}
|
|
{% endfor %}
|
|
{% endif %}
|
|
|
|
{% if references and references | length > 0 %}
|
|
## References
|
|
|
|
{% for ref in references %}
|
|
- [[{{ ref }}]]
|
|
{% endfor %}
|
|
{% endif %}
|