Open
Description
Presently you have to duplicate where you want to load from and to for the inline feature:
<a
data-trimmings-inline="from: main, to: main"
href="/cake"
>
Cake
</a>
... etc
... etc
This can get pretty repetitive if you serve just a partial from the server of the exact element to be replaced.
So it would be great if the from
and to
were both optional and infered based on the top-root element in response from the server.
For example:
<a
data-trimmings-inline
href="/cake"
>
Cake
</a>
Response from server:
<main>.....</main>
Trimmings will assume from: main, to: main
Another example:
<a
data-trimmings-inline="to: custom-main"
href="/cake"
>
Cake
</a>
Assuming the same response from the server <main>
trimmings will essentially assume:
from: main, to: custom-main
Metadata
Metadata
Assignees
Labels
No labels