Re: URI Templates - optional variables?

On 10/31/07, Jim Ancona <jim@anconafamily.com> wrote:
>
> After working with Joe's syntax a bit, I like it. One area that seems a
> bit week is construct that support query variables.
>
> Optional variables aren't too bad:
>
> http://example.com/foo?{,&|opt1,opt2,opt3}
>
> I don't think there's a way to omit the '?' when no parameters are present.

You are correct, this would be fixed if the '?' operator took multiple
variables and inserted the text if any of the variables were defined,
or non-zero length lists.

   -joe

-- 
Joe Gregorio        http://bitworking.org

Received on Friday, 2 November 2007 23:53:38 UTC