Environment
Adds a preference to expose the current environment as a parameter.
Description
Adds a preference to expose the current environment as a parameter.
Usage
Once you set the environment in your preferences you can use it in your templates to target specific environments. For example, you probably don't want to have your Google Analytics code on your development or staging sites. This extension lets you easily differentiate between the two and only serve GA code up to the production site:
<xsl:if test="$environment = 'production'"> <!-- Insert tracking code --> </xsl:if>