Skip to content

The scheme option description unclear #88

Description

@karollewandowski

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?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions