Skip to content

Mixins attributes not supported #46

Description

@Panakotta00

I tried to use the attribute parameter of mixins.
That parameter seems to not be supported.

I tried to use code like:

mixin listRow(name, link)
    tr&attributes(attributes)
        td= $name
        td= $link
+listRow("some name", "some-link.com")(hx-swap-oob="beforeend:#list-table")

It should create some html like:

<tr hx-swap-oob="beforeend:#list-table">
  <td>some name</td>
  <td>some-link.com</td>
</tr>

for the mixin I also tried

mixin listRow(name, link)
    tr&attributes($attributes)
        td= $name
        td= $link

but that did not work either.

Is there another way to implement this or are there plans to fix it?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions