Open Panakotta00 opened 2 years ago
mixin listRow(name, link, customAttributes)
tr&attributes(customAttributes)
td= name
td= link
Then, when you use the mixin, you can pass the customAttributes
parameter like this:
+listRow("some name", "some-link.com", {"hx-swap-oob": "beforeend:#list-table"})
This should help you achieve the desired HTML output with the additional custom attribute.
I tried to use the attribute parameter of mixins. That parameter seems to not be supported.
I tried to use code like:
It should create some html like:
for the mixin I also tried
but that did not work either.
Is there another way to implement this or are there plans to fix it?