From 2ef9eb9a1ced1bc219e3c7755779736ae1f04e27 Mon Sep 17 00:00:00 2001 From: Richard van der Hoff Date: Tue, 19 Jul 2022 18:18:00 +0100 Subject: [PATCH] render-object-table: support adding an anchor to generated tables. --- layouts/partials/openapi/render-object-table.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/layouts/partials/openapi/render-object-table.html b/layouts/partials/openapi/render-object-table.html index 4dc8aeaa..7de88071 100644 --- a/layouts/partials/openapi/render-object-table.html +++ b/layouts/partials/openapi/render-object-table.html @@ -4,6 +4,8 @@ * `title`: optional caption for the table + * `anchor`: optional HTML element id for the table + * `properties`: dictionary of the properties to list, each given as: `property_name` : `property_data` @@ -19,7 +21,7 @@ {{ if $properties }} - + {{ with $title }} {{ end }}
{{ . }}