feat: add propertylist shortcode (#414)

This commit is contained in:
Robert Kaussow 2022-05-22 22:00:37 +02:00 committed by GitHub
parent 5b05b7d68a
commit 6ab98d1da3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
13 changed files with 154 additions and 4 deletions

View file

@ -0,0 +1,23 @@
---
title: Properties
---
The property list shortcode creates a custom HTML description list that can be used to display properties or variables and general dependent information. The shortcode requires a data file in `data/properties/`, e.g. `data/properties/demo.yaml`, where the filename must be passed to the `name` attribute of the property list shortcode.
<!-- prettier-ignore-start -->
```tpl
{{</* propertylist name=demo */>}}
```
<!-- prettier-ignore-end -->
The supported attributes can be taken from the following example:
<!-- prettier-ignore-start -->
<!-- spellchecker-disable -->
{{< include file="/data/properties/demo.yaml" language="Yaml" options="linenos=table" >}}
<!-- spellchecker-enable -->
<!-- prettier-ignore-end -->
## Example
{{< propertylist name=demo >}}