title: How to mix javascript with razor code
body: <p>What the syntax to add the following javascript within my razor (chtml) template?</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  
   $(function(){ 
      @if(Model.IsModalShown)
      {
          $('#myModal').modal('show');
      }
   });
  
  &lt;/script&gt;
  </code></pre>