I just put forward a proposal on the W3C uri mailing list that I hope will move the discussion on URI Templates forward. The proposal comes with working code and I believe solves the percent-encoding issues we've had to date.
Thomas,
No, in general it is not possible to use URI Templates for matching.
Posted by Joe on 2007-10-18
Do you think it's possible to use an URI Template for matching? That's something that'd be cool to have, to standardize things like RoR's routes or selector/wsgidispatch.
Alfresco's already doing it with the current draft's syntax (00 or 01) for their Web Scripts "framework", though I don't know how they do the matches (I suspect they're only doing string comparison on everything before the first "{").
Posted by Thomas Broyer on 2007-10-18