title: Global Variables in Razor View Engine
body: <p>Is there a way for me to use a functionality similar to what are called <a href="http://sparkviewengine.com/documentation/variables#Declaringglobalvariables" rel="noreferrer">Global Variables</a> in the Spark View Engine, but for Razor.</p>
  
  <p>The point of it all lis to be able to define a variable in one section for the title and then being able to set or change the value of that variable later on in another section.</p>
  
  <p>In Spark you would create the variable in a section kind of like this (incomplete code for example purposes):</p>
  
  <pre><code>&lt;html&gt;
    &lt;head&gt;
      &lt;global type='string' Title='"Site Name"'/&gt;
      &lt;title&gt;${Title}&lt;/title&gt;
    &lt;/head&gt;
    &lt;body&gt;
      &lt;div&gt;&lt;use content="view"/&gt;&lt;/div&gt;
    &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>And then you could set it in a different view or section or whatever:</p>
  
  <pre><code>&lt;set Title='product.Name + " - " + Title'/&gt;
  </code></pre>
  
  <p>How would I go about doing something like this in Razor or just solving a similar problem if I have the wrong approach ?</p>