title: How to pass variables from gulp to javascript or coffeescript assets
body: <p>I'm using Coffeescript for my frontend projects, I've been using Middleman until now and I want to switch to Gulp. With Middleman I was able to do something like this:</p>
  
  <pre><code>if foo is "&lt;%= bar %&gt;"
    # do something
  </code></pre>
  
  <p>where <code>bar</code> is a variable in <code>config.rb</code>. I would like to do the same thing using Gulp. Is there a way to pass variables and/or functions from the gulpfile to the script assets?</p>