Another small question, I want to create a Kirbytag which is “dynamically”. In praxis, my customer wants a Kirbytag for h1, h2, h3, h4, h5, h6. Of course, I can create for each a own Kirbytag, but on changes I have to do the changes on 6 Kirbytags.
Best will be, that always the same code is used, no matter if he use (h1: TEST) or (h2: TEST) … only change the HTML Tag.
Is there something like this: (x should be 1,2,3 …)
'h' . $x => [
'attr' => [],
'html' => function ($tag) {
return '<h' . $x . '>TEST'</h' . $x . '>;
}
],