4 ms·
> I find URL templates smelly. Once you stick a place holder in the URL, it's no longer a valid URL - it's something that requires custom mangling before it can
by grncdr 15y ago
> I find URL templates smelly. Once you stick a place holder in the URL, it's no longer a valid URL - it's something that requires custom mangling before it can be passed along.
This is why a standard has been drafted for this particular problem, the mangling becomes standard and predictable rather than customized to each use case.
http://tools.ietf.org/html/draft-gregorio-uritemplate-08 http://tools.ietf.org/html/draft-gregorio-uritemplate-08
- Kiall 15y agoOoo - Very interesting, I've been looking for something like this. I even wrote my own version of this a while back, and scrapped it due to the complexity. A standard would allow for the complexity to be wrapped away in a library :)