mirror of
https://github.com/matrix-org/matrix-spec
synced 2026-03-23 03:34:08 +01:00
We now detect automatically in the `added-in` and `changed-in` shortcodes whether we need to add text according to the page's room version so this parameter has become unnecessary. Moreover, forgetting to set this param can remove the text generated by the shortcodes so it is safer to just get rid of it. Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
19 lines
560 B
HTML
19 lines
560 B
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.
|
|
|
|
*/}}
|
|
|
|
{{ $name := .Params.name -}}
|
|
|
|
{{ with .Site.GetPage "rooms/fragments" -}}
|
|
{{ with .Resources.GetMatch (printf "%s.md" $name) -}}
|
|
{{ .RenderShortcodes | safeHTML }}
|
|
{{ end -}}
|
|
{{ end -}}
|