adobe / htl-spec

HTML Template Language Specification
Apache License 2.0
281 stars 145 forks source link

The scheme option description unclear #88

Open karollewandowski opened 4 years ago

karollewandowski commented 4 years ago

It states:

scheme - allows adding or removing the scheme part for a URI

${'//example.com/path/page.html' @ scheme='http'}
<!-- outputs: http://example.com/path/page.html -->

${'http://example.com/path/page.html' @ scheme='https'}
<!-- outputs: https://example.com/path/page.html -->

${'http://example.com/path/page.html' @ scheme=''}
<!-- outputs: http://example.com/path/page.html -->

${'http://example.com/path/page.html' @ scheme}
<!-- outputs: http://example.com/path/page.html -->

It looks like it doesn't remove scheme, even in examples above. I checked Sightly implementation and it also doesn't remove scheme. I assume that removed scheme means the following output:

${'http://example.com/path/page.html' @ scheme=''}
<!-- outputs: //example.com/path/page.html -->

Could you please clarify it?