<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>faux_rails_root/app/views/templates/haml_template.html.haml</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,5 @@
+07/16/08 - patched template query to handle HAML extensions [Matthew Bass]
+
 06/23/08 - added Sandro's patch for help text below edit fields [Matthew Bass]
 
 06/16/08 - fixed partial rendering calls that had been missed during RC3 refactoring [Matthew Bass]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -45,11 +45,15 @@ module Streamlined::RenderMethods
   
   # Returns true if the given template exists under &lt;tt&gt;app/views&lt;/tt&gt;.
   # The template name can optionally include an extension.  If an extension
-  # is not provided, &lt;tt&gt;rhtml&lt;/tt&gt; will be used by default.
+  # is not provided, &lt;tt&gt;rhtml&lt;/tt&gt; and &lt;tt&gt;.html.haml&lt;/tt&gt; will be used by default.
   def specific_template_exists?(template)
     template, extension = template.split('.')
     path = File.join(RAILS_ROOT, &quot;app/views&quot;, template)
-    File.exist?(&quot;#{path}.#{extension || 'rhtml'}&quot;)
+    if extension.blank?
+      File.exist?(&quot;#{path}.rhtml&quot;) || File.exist?(&quot;#{path}.html.haml&quot;)
+    else
+      File.exist?(&quot;#{path}.#{extension}&quot;)
+    end
   end
   
   def convert_default_options(options)</diff>
      <filename>lib/streamlined/render_methods.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,6 +6,7 @@ describe &quot;Streamlined::RenderMethods#specific_template_exists&quot; do
   
   it &quot;specific template exists?&quot; do
     assert specific_template_exists?(&quot;templates/template&quot;)
+    assert specific_template_exists?(&quot;templates/haml_template&quot;)
     assert specific_template_exists?(&quot;templates/template.rhtml&quot;)
     assert specific_template_exists?(&quot;templates/template.rxml&quot;)
     assert !specific_template_exists?(&quot;templates/template.rpdf&quot;)</diff>
      <filename>test/unit/streamlined/render_methods_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>7ae37c7f0a0e5783b893b981109f9eca1391fa55</id>
    </parent>
  </parents>
  <author>
    <name>matthew</name>
    <email>matthew@4f249914-c612-0410-8deb-f4485a9d85ab</email>
  </author>
  <url>http://github.com/relevance/streamlined/commit/a540467639c55f2f8069a0d39ba36850879fe412</url>
  <id>a540467639c55f2f8069a0d39ba36850879fe412</id>
  <committed-date>2008-07-16T06:37:15-07:00</committed-date>
  <authored-date>2008-07-16T06:37:15-07:00</authored-date>
  <message>patched template query to handle HAML extensions</message>
  <tree>7af15e23e27e86a2f5444157888aed2b05ea72d3</tree>
  <committer>
    <name>matthew</name>
    <email>matthew@4f249914-c612-0410-8deb-f4485a9d85ab</email>
  </committer>
</commit>
