Re: URI Templates - optional variables?

James M Snell scripsit:

> I've been working on that, and it's difficult to say the least.  The
> main challenge is not the template var's themselves, but in knowing
> exactly how to break things up so the right values get pick out of the
> right places.  I'm hoping to have something working by the end of the week.

Indeed, it can't be done in the general case unless you deliver multiple
results.  The template "/{foo}{bar}/ when matched against the URI
"/whatever/" can match 9 different ways.

-- 
A rose by any other name                            John Cowan
may smell as sweet,                                 http://www.ccil.org/~cowan
but if you called it an onion                       cowan@ccil.org
you'd get cooks very confused.          --RMS

Received on Tuesday, 16 October 2007 04:35:22 UTC