<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>TODO</filename>
    </added>
    <added>
      <filename>app/views/layouts/theme.html.haml</filename>
    </added>
    <added>
      <filename>config/template.html</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -6,3 +6,4 @@ doc/app
 coverage
 config/database.yml
 config/config.yml
+config/template.html~</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,12 @@
 class PhotosController &lt; ApplicationController
+  layout 'theme'
+  
   def show
-    # Find the photo from id, or get the most recent one.
+    # Find the photo from id or get the most recent one.
     @photo = params[:id] ? Photo.find(params[:id]) : Photo.find(:first, :order =&gt; 'created_at DESC')
     
     respond_to do |format|
       format.html
-      format.xml { render :xml =&gt; @photo }
     end
   end
 end
\ No newline at end of file</diff>
      <filename>app/controllers/photos_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,6 +10,15 @@ class Photo &lt; ActiveRecord::Base
   validates_presence_of   :fullsize_source_url, :message =&gt; &quot;can't be blank&quot;
   validates_presence_of   :title,               :message =&gt; &quot;can't be blank&quot;
   
+  liquid_methods  :id,
+                  :title,
+                  :square_source_url,
+                  :thumb_source_url,
+                  :medium_source_url,
+                  :fullsize_source_url,
+                  :previous,
+                  :next
+  
   def update_from_flickr
     self.attributes = self.attributes.merge(FlickrPhoto.new(self.flickr_id).attributes)
   end
@@ -21,7 +30,7 @@ class Photo &lt; ActiveRecord::Base
   def next
     @next_photo ||= Photo.find(:first, :order =&gt; 'created_at ASC', :conditions =&gt; ['created_at &gt; ?', created_at])
   end
-    
+  
   def self.new_from_flickr(flickr_photo)
     Photo.new do |photo|
       photo.flickr_id           = flickr_photo.id</diff>
      <filename>app/models/photo.rb</filename>
    </modified>
    <modified>
      <diff>@@ -2,7 +2,7 @@ class Theme
   include Singleton
   include Validatable
   
-  THEME_FILE = &quot;#{Rails.root}/config/template.txt&quot;
+  THEME_FILE = File.join(Rails.root, 'config', 'template.html')
 
   attr_accessor :template
   
@@ -14,7 +14,7 @@ class Theme
   
   def save
     backup_file
-    File.open(THEME_FILE) do |file|
+    File.open(THEME_FILE, 'w+') do |file|
       file.write(@template)
       file.flush
     end</diff>
      <filename>app/models/theme.rb</filename>
    </modified>
    <modified>
      <diff>@@ -31,8 +31,8 @@ Rails::Initializer.run do |config|
   config.gem 'bj'
   config.gem 'validatable'
   config.gem 'flickraw'
-  config.gem 'will_paginate'
   config.gem 'liquid'
+  config.gem 'mislav-will_paginate', :version =&gt; '~&gt; 2.2.3', :lib =&gt; 'will_paginate', :source =&gt; 'http://gems.github.com'
 
   # Only load the plugins named here, in the order given. By default, all plugins 
   # in vendor/plugins are loaded in alphabetical order.</diff>
      <filename>config/environment.rb</filename>
    </modified>
    <modified>
      <diff>@@ -4,4 +4,5 @@ rescue LoadError
   require 'haml' # From gem
 end
 
+# Load Haml and Sass
 Haml.init_rails(binding)</diff>
      <filename>vendor/plugins/haml/init.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/views/layouts/application.haml</filename>
    </removed>
    <removed>
      <filename>doc/TODO.taskpaper</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>2c177acb1ec689490d616146a9b76ed26c775640</id>
    </parent>
  </parents>
  <author>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </author>
  <url>http://github.com/timriley/flickr-portfolio/commit/c4bb1d7617aee9f2f5d9ff9625212c517a28101f</url>
  <id>c4bb1d7617aee9f2f5d9ff9625212c517a28101f</id>
  <committed-date>2008-12-09T04:22:57-08:00</committed-date>
  <authored-date>2008-12-09T04:22:57-08:00</authored-date>
  <message>liquid template support for themes</message>
  <tree>dcecdba69160e6b6ff4a7ed9e6c311d804a35b68</tree>
  <committer>
    <name>Tim Riley</name>
    <email>tim@openmonkey.com</email>
  </committer>
</commit>
