title: Access Node Environment Variables in Jade file
body: <p>I am trying to figure out how to optionally display text in a jade file based on the environment. I can't seem to figure out how to access the <code>NODE_ENV</code> variable in my jade file. </p>
  
  <p>In my <code>index.jade</code> file I am doing:</p>
  
  <pre><code>if process.env.NODE_ENV === 'development'
    h1 I am in development mode
  else
    h1 I am not in development mode
  </code></pre>
  
  <p>The problem is that <code>process.env.NODE_env</code> is <code>undefined</code>. </p>
  
  <p>When I try and do: <code>h1 #{process.env}</code> outside of the <code>if</code> statement, Jade outputs <code>[Object Object]</code> onto the page. </p>
  
  <p>When I try and do: <code>h1 #{process.env.NODE_ENV}</code> outside of the <code>if</code> statement, Jade does not output anything onto the page. </p>
  
  <p>I am not rendering my Jade files on fly, rather I am building them all as "static" files whenever I start the server. </p>