title: Sharing mustache/nustache templates between server and client. ASP.NET MVC
body: <p>I`m using <strong>mustache.js</strong> on client and <strong>Nustache</strong> in ASP.NET MVC3 project.</p>
  
  <p>I have <code>Person.mustache</code> template in a View folder on server, which I use like this:</p>
  
  <pre><code>@Html.Partial("Person")
  </code></pre>
  
  <p>from Razor main view (<code>Index.cshtml</code>).</p>
  
  <p>But how can I transfer it to client? Browser has no access to Views folder to get raw content of a template. Somehow I must have a way to include to output HTML raw text of Person.mustache template on server. If I require it from Razor view, it compiles it, since it is normal server template engine. </p>
  
  <p>Please anyone can give any ideas? Thanks.</p>