This repository was archived by the owner on Jan 25, 2021. It is now read-only.

Description
Github: https://github.com/jenstornell/kirby-shortcode
Kirby Shortcode is a powerful alternative to kirbytags, but it's more similar to WordPress Shortcode API.
|
Kirbytags |
Shortcode |
| Self closing |
Yes |
Yes |
| Closing |
- |
Yes |
| Nesting |
- |
Yes |
| Any HTML |
- |
Yes |
Access to $field |
Yes |
Yes |
Access to $page |
Yes |
Yes |
Example
[hello]
Some text.
[greetings firstname="Peter" lastname="Parker"]
[hello] This is a tag inside a tag.
Kirby *markdown* can be used inside a tag.
Html can be <strong>used as well</strong>!
Even kirbytags like (email: [email protected]) works.
[/greetings]
Some more text.
[field-data]