[whatwg] HTML5 and URI Templates

It's just an example.

Here's another:

<form template="http://www.google.com/search?{-join|&|q,num}"
      method="GET">
  <input name="q" type="text" />
  <input name="num" type="range" step="1" min="5" max="100" value="5" />
</form>

- James

Krzysztof ?elechowski wrote:
> Dnia 15-12-2007, So o godzinie 19:28 -0800, James M Snell pisze:
>> <form template="http://example.org{-prefix|/|foo}?bar={bar}"
>>       method="POST">
>>   Foo: <input name="foo" type="input" >
>>   Bar: <input name="bar" type="input">
>> </form>
> 
> Why is this prefix operator needed here?  
> What is wrong with the URL <http://example.org/?bar=input>?
> 
> Chris
> 
> 

Received on Monday, 17 December 2007 10:13:02 UTC