<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -132,9 +132,8 @@ module Merb
           if view[:partial]
             # Set the template root, create the template method and call the partial
             _template_root = File.join(view[:plugin].path, &quot;views&quot;)
-            template_location = _template_root / _template_location(&quot;_#{view[:partial]}&quot;, content_type, view[:name])
-            template_method = Merb::Template.template_for(template_location)
-            output &lt;&lt; send(template_method, options)
+            template_location = _template_root / _template_location(&quot;#{view[:partial]}&quot;, content_type, view[:name])
+            output &lt;&lt; partial(template_location, { :with =&gt; options[:with], :as =&gt; options[:with].class.to_s.downcase.singular })
           else
             # Render the specified text using ERB and the options
             output &lt;&lt; Proc.new { |args| ERB.new(view[:content]).result(binding) }.call(options[:with])</diff>
      <filename>app/helpers/global_helpers.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>d9fdcdc6d8770b111dbf9df8835d92c89aeec166</id>
    </parent>
  </parents>
  <author>
    <name>AJ Christensen</name>
    <email>aj@junglist.gen.nz</email>
  </author>
  <url>http://github.com/mleung/feather/commit/261681fe782c39aa65ec41c33f9ff94e1886bf10</url>
  <id>261681fe782c39aa65ec41c33f9ff94e1886bf10</id>
  <committed-date>2008-07-20T04:43:43-07:00</committed-date>
  <authored-date>2008-07-20T04:43:43-07:00</authored-date>
  <message>Somehow my render_plugin_views fix was lost in the Ether.

From my original commit:

Fixed the render_plugin_views helper to correctly render plugin hooks on
Merb edge.

Unfortunately we have to perform a fairly large assumption here, that is,
we have to assume that you'd like to use the Object being passed (with
:with =&gt;) inside the partial as the singular, downcased version.

e.g., you use &lt;%= render_plugin_views &quot;last_article_in_list&quot;,
:with =&gt; {:last =&gt; @articles.last} %&gt;. In your plugin hook
partial, you *have* to use the singular downcased representation of the
Object(s) you're passing.

Articles =&gt; article

11:48 &lt; fujin&gt; e.g. the view I'm testing uses 'article.something',
because it's expecting an Articles to be passed in /as/ 'article'
11:51 &lt; fujin&gt; very hard assumption to make - I either have to
*blanket* say that we'll be passing a singular downcased version of the
Object you're passing to :with
11:51 &lt; fujin&gt; or work out something else to do
11:52 &lt; TheWordNerd&gt; Doesn't seem like a bad assumption.
11:53 &lt; fujin&gt; output &lt;&lt; partial(template_location, { :with
=&gt; options[:with], :as =&gt;
options[:with].class.to_s.downcase.singular })</message>
  <tree>680cac669a14d84a0b3e13b0e6f101a5bf313b7b</tree>
  <committer>
    <name>AJ Christensen</name>
    <email>aj@junglist.gen.nz</email>
  </committer>
</commit>
