title: jQuery templates and partial views
body: <p>I have an ASP.NET MVC 2 website that I am starting to use <a href="http://api.jquery.com/category/plugins/templates/" rel="nofollow">jQuery Templates</a> on. I love them and they work great, but I am trying to add this to a listing that contains a partial view. I know they effectively solve the same issue, except that I need both.</p>
  
  <pre><code>&lt;script id="ListingTemplate" type="text/x-jquery-tmpl"&gt;
      &lt;div&gt;
          &lt;% Html.RenderPartial("Listing", {{ID}}); %&gt;
      &lt;/div&gt;
  &lt;/script&gt;
  </code></pre>
  
  <p>This fails as <code>{{ID}}</code> is not an ASP.NET variable and I cannot find a way to get this to resolve. I would like to use a workflow like this rather than attempt to rewrite my partial logic in JS.</p>