RE: URI Templates - optional variables?

Stefan Eissing wrote:
> I cannot speak for Mike. What I can see as use case would be 
> a template describing a site's structure like
> 
> http://www.example.com/pictures/{user?}/{theme?}/
> 
> which is then used to generate
> 
> http://www.example.com/pictures/dan/cars/ - all of dan's car 
> pics http://www.example.com/pictures/dan/ - all of dan's pics
> 
> and maybe even
> 
> http://www.example.com/pictures/ - all of pics of all users
> 
> Of course this could also be done by using query parameters, 
> but without the uris are easier to remember. I hope this 
> explains it a bit.

You spoke for me perfectly in this case. :-)  And it is a really good
example, actually.

--
-Mike Schinkel
organizer@atlanta-web.org
http://atlanta-web.org
404-276-1276 (cell) 

Received on Wednesday, 1 August 2007 22:59:37 UTC