# Request object

# request.host

Returns the hostname of the current request.

Example:

    {{ request.host }}

Will return in any page:

    shoesmegastore.dk

# request.ip

Returns the ip of visitor.

Example:

    {{ request.ip }}

# request.ip_country

Returns the country of the ip that made the request.

Example:

    {% if request.ip_country == 'DK') %}
        <h1>Welcome Viking!</h1>
        <img src="/danish-banner.jpg">
    {% else %}
        <h1>Welcome Stranger</h1>
        <img src="/world-banner.jpg">
    {% endif %}

# request.path

Returns the uri of the current request.

Example:

    {{ request.path }}

In the page https://shoesmegastore.dk/thanks will return:

    thanks

# request.url

Returns the full url of the current request.

Example:

    {{ request.path }}

In the page https://shoesmegastore.dk/thanks will return:

    https://shoesmegastore.dk/thanks

# request.parameters

Returns an array of the url parameters.

Example:

    {{ request.parameters.campaign }}

In the page https://shoesmegastore.dk/products?campaign=christmas will return:

    christmas