title: Advantages of razor replace (@href)
body: <p>In the documentation of ASP.NET MVC says that you should do something like this when have a link in a view</p>
  
  <pre><code>&lt;a href="@href("~/SubPage")"&gt;Subpage&lt;/a&gt;.
  </code></pre>
  
  <p>The razor engine replaces <code>@href("~/SubPage")</code>to <code>/Subpage</code>.</p>
  
  <p>What is the advantage of do it this way instead </p>
  
  <pre><code>&lt;a href="/SubPage"&gt;Subpage&lt;/a&gt;.
  </code></pre>
  
  <p>In cases like this and in others (like creating a form) why use the razor engine instead of write directly what you want. I think is faster on the server side to print something directly that let the engine to generate it.</p>