title: How can I dynamically alter the files in the /Content directory in ASP.NET MVC?
body: <p>When I serve a javascript file to a user from the /Content Directory I want to replace a <code>string</code> token in that file with a value, so that when the user requests a given file, it has all the customizations they expect.</p>
  
  <p>I think that means I need to somehow proxy requests to the /Content directory, perform the dynamic insertion, and give the file to the user.</p>
  
  <ul>
  <li>I'm interested in performing this insertion as a <code>stream</code> or as a in -memory file.  I'd prefer to use a stream just because it's probably more efficient memory wise. </li>
  </ul>
  
  <p>How do I get ASP.NET to proxy this directory?</p>
  
  <p>I've attempted</p>
  
  <ol>
  <li><p>Using routes to point to a controller</p></li>
  <li><p>WCF to proxy a URL</p></li>
  </ol>
  
  <p>But they all seem "ugly" to me and I'd like to make this insertion/replacement as transparent as possible int he project.</p>
  
  <p>Is there a cleaner way?</p>