title: HTML preprocess engine for MSBuild
body: <p>I'm interesting for simple solution for preprocessing of HTML files in .NET world. Here is an example of template I found in preprocess package for gruntjs:</p>
  
  <pre><code>&lt;head&gt;
    &lt;title&gt;Your App&lt;/title&gt;
    &lt;!-- @if NODE_ENV='production' --&gt;
    &lt;script src="some/production/lib/like/analytics.js"&gt;&lt;/script&gt;
    &lt;!-- @endif --&gt;
  &lt;/head&gt;
  &lt;body&gt;
    &lt;!-- @ifdef DEBUG --&gt;
    &lt;h1&gt;Debugging mode - &lt;!-- @echo RELEASE_TAG --&gt; &lt;/h1&gt;
    &lt;!-- @endif --&gt;
    &lt;p&gt;
    &lt;!-- @include welcome_message.txt --&gt;
    &lt;/p&gt;
  &lt;/body&gt;
  </code></pre>
  
  <p>Of course, I can render it in cshtml, but I'm just interesting is it possible to generate static content on post build action (just by pressing F6 and everything nice) the similar way?</p>
  
  <p>The solution looks close to the aim it is using T4 templates. But it is not so elegant and simple as the language above.</p>
  
  <p>The second solution is to install gruntjs, but it is not convenient to install this one to multiple dev machines and just simply looks weird in .NET world (where we have MSBuild, NAnt and powershell).</p>
  
  <p>Any other ideas how to do not reinvent a bycle:)?</p>
  
  <p>P.S. Please don't ask me why the question is so weird and why I just don't want to relax and get pleasure from cshtml:). I just have a research question that can be also interesting for other people (for example, in SPA I have only one such file and there is no reason to use server and make all the client hardly dependent from .NET). </p>