In my kirby patterns I like to keep my html classes organized within arrays, which makes it easier to filter undesired classes. It would be useful to allow users to pass such kind of arrays to the attr() helper function as it reduces the amount of required code:
Args, a pity it is still not possible to change the target branch of a pull request (https://github.com/isaacs/github/issues/18). I will reopen it on the dev-branch. Sorry for the trouble.
In my kirby patterns I like to keep my html classes organized within arrays, which makes it easier to filter undesired classes. It would be useful to allow users to pass such kind of arrays to the
attr()
helper function as it reduces the amount of required code:Following an example:
Before:
After: