<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>test_project/erb/_layout.html.erb</filename>
    </added>
    <added>
      <filename>test_project/erb/index.html.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -50,7 +50,7 @@ h3. Creating Our First Screen
 
 Now that we have the prototype directory set up, let's create our first page so that you can get a feel for how Serve works. This will be a simple HTML login page for our application.
 
-Insert the following HTML into an file named &quot;login.html&quot;:
+Insert the following HTML into an file named &quot;login.html.erb&quot;:
 
 &lt;pre&gt;&lt;code&gt;
 &lt;form action=&quot;/dashboard/&quot; method=&quot;put&quot;&gt;
@@ -96,7 +96,7 @@ Name                          Last modified         Size
 Parent Directory              2008/02/23 15:35      -
 images/                       2008/02/23 15:35      -
 javascripts/                  2008/02/23 15:35      -
-login.html                    2008/02/23 15:36      346
+login.html.erb                2008/02/23 15:36      346
 stylesheets/                  2008/02/23 15:35      -
 &lt;/pre&gt;
 
@@ -111,7 +111,7 @@ h3. Layouts
 
 One thing to note about the source that I gave you for the login page. I intentionally left out the &lt;html&gt;, &lt;head&gt;, and &lt;body&gt; tags because they belong a layout---not the source file. Let's go ahead and create that layout now.
 
-Insert the following HTML into a file named &quot;_layout.html&quot; in the root directory of your prototype:
+Insert the following HTML into a file named &quot;_layout.html.erb&quot; in the root directory of your prototype:
 
 &lt;pre&gt;&lt;code&gt;
 &lt;html&gt;
@@ -129,7 +129,7 @@ This layout includes a small amount of ERB(Embedded Ruby) to indicate the title
 
 Embedded Ruby is delineated with the opening and closing sequence &lt;% and %&gt; respectively. Sequences that begin with an addition equals sign insert their output directly into the HTML. In this case we want to render the @title variable as the title in the head and as the first heading in the document body. The yield keyword is used to insert the content of the page at that point.
 
-We need to make one small change to our login page before continuing. Insert the following line at the top of login.html file:
+We need to make one small change to our login page before continuing. Insert the following line at the top of login.html.erb file:
 
 &lt;pre&gt;
 &lt;% @title = &quot;Login&quot; %&gt;</diff>
      <filename>Quickstart.textile</filename>
    </modified>
    <modified>
      <diff>@@ -33,11 +33,18 @@ module Serve #:nodoc:
       root = Dir.pwd
       path = filename[root.size..-1]
       layout = nil
-      begin
+      
+      until layout or path == &quot;/&quot;
         path = File.dirname(path)
-        l = File.join(root, path, '_layout.haml')
-        layout = l if File.file?(l)
-      end until layout or path == &quot;/&quot;
+        
+        possible_layouts = ['_layout.haml', '_layout.html.erb'].map do |l|
+          possible_layout = File.join(root, path, l)
+          File.file?(possible_layout) ? possible_layout : false
+        end
+        
+        layout = possible_layouts.detect {|o| o }
+      end 
+      
       layout
     end
     </diff>
      <filename>lib/serve/handlers/dynamic_handler.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b88f9b884e45964672921f40a11119c9d3c152a8</id>
    </parent>
  </parents>
  <author>
    <name>Lawrence Karnowski</name>
    <email>larry@thinkrelevance.com</email>
  </author>
  <url>http://github.com/jlong/serve/commit/9f2eb9ecfce85d47449732bea24668bb2d3b46cd</url>
  <id>9f2eb9ecfce85d47449732bea24668bb2d3b46cd</id>
  <committed-date>2008-07-18T09:14:33-07:00</committed-date>
  <authored-date>2008-07-18T09:14:33-07:00</authored-date>
  <message>Added support for _layout.html.erb as a layout file.
- Updated the quickstart to show *.html.erb file extensions rather than *.html.
- Created an ERB directory in the test_project that highlights an ERB-only project.</message>
  <tree>fb2c91b774d6a1a085c4dc6116b6d00cffae86c5</tree>
  <committer>
    <name>Lawrence Karnowski</name>
    <email>larry@thinkrelevance.com</email>
  </committer>
</commit>
