<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -11,9 +11,8 @@ module StaticMatic
       path_info   = request.params[Mongrel::Const::PATH_INFO].chomp(&quot;/&quot;)
       get_or_head = %w(GET HEAD).include? request.params[Mongrel::Const::REQUEST_METHOD]
       
-      if get_or_head and @files.can_serve(path_info)
-        @files.process(request, response) # try to serve static file from site dir
-      elsif @staticmatic.can_render? path_info  
+
+      if @staticmatic.can_render? path_info  
         file_ext = File.extname(path_info).gsub(/^\./, '')
         response.start(200) do |head, out|
           output = if (file_ext == &quot;css&quot;)
@@ -30,6 +29,8 @@ module StaticMatic
           head[Mongrel::Const::CONTENT_TYPE] = Mongrel::DirHandler::MIME_TYPES[&quot;.#{file_ext}&quot;] || &quot;application/octet-stream&quot;
           out.write(output || &quot;&quot;)
         end
+      elsif get_or_head &amp;&amp; @files.can_serve(path_info)
+        @files.process(request, response) # try to serve static file from site dir
       end
     end
     </diff>
      <filename>lib/staticmatic/previewer.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,6 @@
 Gem::Specification.new do |s|
   s.name     = &quot;staticmatic&quot;
-  s.version  = &quot;2.1.2&quot;
+  s.version  = &quot;2.1.3&quot;
   s.date     = &quot;2008-09-11&quot;
   s.authors  = [&quot;Stephen Bartholomew&quot;, &quot;Thomas Reynolds&quot;]
   s.email    = &quot;tdreyno@gmail.com&quot;</diff>
      <filename>staticmatic.gemspec</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>aa5908d36a29e912ac9f25ebc5e5c7689fcf5c92</id>
    </parent>
  </parents>
  <author>
    <name>Stephen Bartholomew</name>
    <email>steve@curve21.com</email>
  </author>
  <url>http://github.com/stevebartholomew/staticmatic/commit/8781bd1cbc1c929b8cc674af1a523f8199185af2</url>
  <id>8781bd1cbc1c929b8cc674af1a523f8199185af2</id>
  <committed-date>2008-09-12T03:26:07-07:00</committed-date>
  <authored-date>2008-09-12T03:26:07-07:00</authored-date>
  <message>Fixed Previewer to see if SM can render a file *before* checking the static directory</message>
  <tree>405b98b6e644e76afd38386485f737892e500ab8</tree>
  <committer>
    <name>Stephen Bartholomew</name>
    <email>steve@curve21.com</email>
  </committer>
</commit>
