Re: [whatwg/url] Add some sort of URI template API? (#192)

URI template takes care of that for you - the context is in the template operators, so that e.g., a variable in a path can be escaped correctly.

The limitation that route-parser mentions is well understood; it wasn't a design goal to extract variables from a URL, and it doesn't sound like that's a goal here either.

I don't see why that spec being built "on top of" 3986 makes it any less usable for your use case...

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/url/issues/192#issuecomment-626290174

Received on Sunday, 10 May 2020 08:09:02 UTC