title: ASP.NET MVC UI Template: How to mix an IList Model property with EditorFor( m => m.subModel)?
body: <p>Say you have this:</p>
  
  <pre><code>public class ShoppingCart {
      public IList&lt;CartItem&gt; cartItems {get; set; }
  }
  </code></pre>
  
  <p>And you do this to render the class:</p>
  
  <pre><code>&lt;%= EditorFor( m =&gt; m.ShoppingCart, "ShoppingCart") %&gt;
  </code></pre>
  
  <p>How would you do the EditorFor( ??, "CartItem") in the ShoppingCart.ascx?  I would think it would look something like this:</p>
  
  <pre><code>&lt;% foreach( CartItem myCartItem in m.cartItems) { 
       %&gt;&lt;%= EditorFor( ??, "CartItem")
  %&gt;&lt;% } %&gt;
  </code></pre>
  
  <p>The idea here of course is to use a UI template for an entire class, not just a property.</p>