- From: Matthew Phillips <notifications@github.com>
- Date: Thu, 09 Nov 2023 11:00:08 -0800
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Thursday, 9 November 2023 19:00:14 UTC
@EisenbergEffect: There are many possible DSL one could imagine. We shouldn't limit ourselves to one specific solution. But for the sake of discussion, here's one:
__index.html__
```html
<style type="bindings">
a {
--user-id: 1234;
}
</style>
<a>...</a>
```
__bindings.css__
```css
a {
href: "./user/" var(--user-id);
}
```
__script.js__
```js
el.bindings.setProperty('--user-id', newId);
```
Note that this is all pseudo-code, i'm not proposing this exact thing. This is meant to demonstrate that we already have something like "binding from a distance" in that we have "style from a distance".
--
Reply to this email directly or view it on GitHub:
https://github.com/WICG/webcomponents/issues/1035#issuecomment-1804414581
You are receiving this because you are subscribed to this thread.
Message ID: <WICG/webcomponents/issues/1035/1804414581@github.com>
Received on Thursday, 9 November 2023 19:00:14 UTC