diff options
author | Matthias Beyer <mail@beyermatthias.de> | 2022-08-29 12:21:16 +0200 |
---|---|---|
committer | Matthias Beyer <mail@beyermatthias.de> | 2022-08-29 14:39:13 +0200 |
commit | 7a767113122dc209cad7b5a3b20c1617bb7aa122 (patch) | |
tree | e3741b1f9dde198b7fea4a79f00a9dda1d738fa4 /assets | |
parent | dfe9d1df1f2cada90fa0a4ba9e1df4c0743d2b02 (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.md | 8 |
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}} |