title: Extending Ember LinkView
body: <p>Ember.LinkView, the the view class behind the handlebars {{linkTo}} helper is now public in Ember 1.0 RC2.  I want to extend it so I can create a custom view without having an extra nested tag for linkTo.</p>
  
  <p>For example:</p>
  
  <pre><code>App.MyLinkView = Ember.LinkView.extend({
      namedRoute: 'another'
  });
  </code></pre>
  
  <p>then</p>
  
  <pre><code>{{#view App.MyLinkView}}LinkView to another route{{/view}}
  </code></pre>
  
  <p>Looked through the source a bit without much luck, as it constantly throws an error.
  Here's a jsfiddle with the standard {{linkTo}} working, and the LinkView attempt commented out so it doesn't throw an error.</p>
  
  <p><a href="http://jsfiddle.net/HgmEy/1/" rel="nofollow">http://jsfiddle.net/HgmEy/1/</a></p>
  
  <hr>
  
  <p><strong>Edit:</strong></p>
  
  <p>Here is a more realistic example of why you would want to do this:
  <a href="http://jsfiddle.net/HgmEy/3/" rel="nofollow">http://jsfiddle.net/HgmEy/3/</a></p>
  
  <p>The desired functionality is working here using a regular view, however using a LinkView would be preferred to avoid the extra dom element.</p>