title: Razor: Declarative HTML helpers
body: <p>I'm trying to write a simple declarative html helper:</p>
  
  <pre><code>@helper Echo(string input) {
      @input
  }
  </code></pre>
  
  <p>The helper works fine if I embed it into the page I want to use it on. But if I move it to a separate <code>.cshtml</code> file and place that file in the <code>~/Views/Helpers</code> directory, my view can't be compiled anymore because the helper is not found. According to Scott Gu's <a href="http://weblogs.asp.net/scottgu/archive/2010/07/02/introducing-razor.aspx">blog article on Razor</a> it should work. </p>
  
  <p>What am I doing wrong?</p>