* Fully specify room versions * Misc typo clarifications * Try to clarify redactions a bit * Update content/client-server-api/_index.md Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Update content/rooms/v6.md Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Update content/rooms/v6.md Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> * Better describe client considerations * Doc template params * Move redaction "new stuff" to v3 * Remove unhelpful sentences about "here follows unchanged stuff" * Simplify event signing text * Clean up handling redactions sections * Move v4's event schema to unchanged section * Update content/rooms/v4.md Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com> Co-authored-by: Richard van der Hoff <1389908+richvdh@users.noreply.github.com>
25 lines
1 KiB
HTML
25 lines
1 KiB
HTML
{{/*
|
|
|
|
This template is used to render a "room version fragment". Fragments are blocks of
|
|
text which describe a portion of the room version specification. They should be
|
|
prefixed with the room version which introduces the fragment, and be reusable for
|
|
two or more versions.
|
|
|
|
The `name` parameter is the file name without extension.
|
|
|
|
The `withVersioning` parameter is optional and defaults to false. When true, any
|
|
mentions of "New in this version" from the `added-in` shortcode are removed prior
|
|
to rendering. This is useful if needing to use a fragment where part of it describes
|
|
new functionality in a given room version but isn't new for subsequent versions.
|
|
|
|
*/}}
|
|
|
|
{{ $name := .Params.name }}
|
|
{{ $withVersioning := .Params.withVersioning }}
|
|
|
|
{{ $page := .Site.GetPage (path.Join .Page.Dir "fragments" (printf "%s%s" $name ".md"))}}
|
|
{{ $content := $page.Content }}
|
|
{{ if not $withVersioning }}
|
|
{{ $content = (replace $content "[New in this version]" "") }}
|
|
{{ end }}
|
|
{{ $content | safeHTML }}
|