Skip to content

Latest commit

 

History

History
13 lines (7 loc) · 431 Bytes

markup-this-environment.md

File metadata and controls

13 lines (7 loc) · 431 Bytes

this.environment

You can access the current environment object via this.environment and it returns a string that references the current environment configuration.

Example

The following example will display a banner if the website is running in the test environment:

{% if this.environment == 'test' %}

    <div class="banner">Test Environment</div>

{% endif %}