- From: Bramus via GitHub <noreply@w3.org>
- Date: Thu, 14 Aug 2025 15:49:48 +0000
- To: public-css-archive@w3.org
Looking up some of my old VT syntax explorations, I have this snippet where I define the routes in CSS.
```css
@routes {
--articles: urlpattern('/articles');
--article: urlpattern('/articles/:article_id');
}
```
Seems like a nice alternative to the proposed `script type=routemap` for defining the possible routes.
_(The usage of `urlpattern()` in CSS also came up in https://github.com/w3c/csswg-drafts/issues/10975#issuecomment-2578487201)_
--
GitHub Notification of comment by bramus
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/12594#issuecomment-3188945546 using your GitHub account
--
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Thursday, 14 August 2025 15:49:49 UTC