summaryrefslogtreecommitdiffstats
path: root/assets
diff options
context:
space:
mode:
authorMatthias Beyer <mail@beyermatthias.de>2022-08-29 12:21:16 +0200
committerMatthias Beyer <mail@beyermatthias.de>2022-08-29 14:39:13 +0200
commit7a767113122dc209cad7b5a3b20c1617bb7aa122 (patch)
treee3741b1f9dde198b7fea4a79f00a9dda1d738fa4 /assets
parentdfe9d1df1f2cada90fa0a4ba9e1df4c0743d2b02 (diff)
Change layout of data passed to template
We pass the following data layout now: In pseudo-json: { "versions": [ { "version": "0.1.0" "entries": [ ... ] } ] } The top-level is a map, so we can pass more data as we see fit. The "versions" key is a _sorted_ array of version objects, each holding the version string and a list of entries. These entries are Fragment objects. The template was adapted to reflect this. The tests were adapted to reflect this. Signed-off-by: Matthias Beyer <mail@beyermatthias.de>
Diffstat (limited to 'assets')
-rw-r--r--assets/default_template.handlebars.md8
1 files changed, 4 insertions, 4 deletions
diff --git a/assets/default_template.handlebars.md b/assets/default_template.handlebars.md
index 5e06e82..dfe0153 100644
--- a/assets/default_template.handlebars.md
+++ b/assets/default_template.handlebars.md
@@ -2,11 +2,11 @@
<!-- generated from cargo-changelog -->
-{{#each this}}
-## v{{@key}}
+{{#each versions}}
+## v{{this.version}}
-{{#each this}}
-- (#{{header.issue}}) {{text}}
+{{#each this.entries}}
+- (#{{this.header.issue}}) {{this.text}}
{{/each}}
{{/each}}