From a3939fce2a44686fa25c1510d032b6a21b4668cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6sch-Plepelits?= Date: Sat, 20 Aug 2022 20:48:25 +0100 Subject: [PATCH] YAML Tutorial: add a 'body' script, using the yaml filter --- doc/CategoryAsYAML.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/doc/CategoryAsYAML.md b/doc/CategoryAsYAML.md index 5e6596d1..e9f1b94a 100644 --- a/doc/CategoryAsYAML.md +++ b/doc/CategoryAsYAML.md @@ -128,6 +128,11 @@ feature: # each value individually. They are joined as enumeration. details: | {{ tagTransList('cuisine', tags.cuisine) }} + # Body is shown in the popup and the details in the sidebar. An easy way to + # show all tags is using the TwigJS 'yaml' filter, which produces YAML. + # Alternatively, you could use 'json_pp' (JSON pretty print). + body: | +
{{ tags|yaml }}
filter: cuisine: name: "{{ keyTrans('cuisine') }}"