Skip to content

Instantly share code, notes, and snippets.

@rimian
Created June 10, 2015 02:00
Show Gist options
  • Save rimian/305e89ba918d0da596ca to your computer and use it in GitHub Desktop.
Save rimian/305e89ba918d0da596ca to your computer and use it in GitHub Desktop.
% if ($session{'CurrentUser'}->EmailAddress =~ /\@example\.net$/) {
<script type="text/javascript"
% if ( $ENV{'SERVER_NAME'} =~ /integration/ ) {
src="http://bam.integration.example.net/bam.js"
% } else {
src="https://bam.production.example.net/bam.js"
% }
></script>
%}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment