title: How to embed Razor C# code in a .js file?
body: <p>Have to embed javascript code block with</p>
  
  <pre><code>&lt;script type='text/javascript'&gt;
    ...
  &lt;/script&gt;
  </code></pre>
  
  <p>But Razor code won't compile in a <code>.js</code> file, included from a <code>.cshtml</code> file.</p>
  
  <p>How to make this work? Or is there any other elegant way to have a similar effect?</p>
  
  <p>Thank you.</p>