URI Template expanded examples

I like the list of examples, but believe it should be expanded to not only
cover the typical cases, but to also cover edge cases and things that may be
tricky or non-obvious from the spec text.

 .-----------------------------------------------------------------.
 | Sec | Op  | Description                                         |
 |     |     |    Expression      | Expansion                      |
 |-----+-----+-----------------------------------------------------|
 | 2.2 |     | Reserved operators                                  |
 |     |     |                                                     |
 |     |     |    {|var}            {|var}                         |
 |     |     |    {!hello}          {!hello}                       |
 |     |     |    {@var}            {@var}                         |
 |     |     |    {$var}            {$var}                         |
 |     |     |    {(var}            {(var}                         |
 |     |     |    {)var}            {)var}                         |


emptylist := [ ];
emptykeys := [ ];

 |-----+-----+-----------------------------------------------------|
 | 3.6 |     |                                                     |
 |     |     |    X{?emptylist}      X                             |
 |     |     |    X{?emptykeys}      X                             |
 | 3.7 |     |                                                     |
 |     |     |    X{/emptylist}      X                             |
 |     |     |    X{/emptykeys}      X                             |
 | 3.8 |     |                                                     |
 |     |     |    X{.emptylist}      X                             |
 |     |     |    X{.emptykeys}      X                             |

   Thanks,
   -joe

Received on Friday, 26 February 2010 15:00:01 UTC