<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/public</filename>
    </added>
    <added>
      <filename>app/views</filename>
    </added>
    <added>
      <filename>themes/default/public/404.html</filename>
    </added>
    <added>
      <filename>themes/default/public/500.html</filename>
    </added>
    <added>
      <filename>themes/default/public/favicon.ico</filename>
    </added>
    <added>
      <filename>themes/default/public/javascripts/application.js</filename>
    </added>
    <added>
      <filename>themes/default/public/stylesheets/comment_form.css</filename>
    </added>
    <added>
      <filename>themes/default/public/stylesheets/master.css</filename>
    </added>
    <added>
      <filename>themes/default/views/comments.builder</filename>
    </added>
    <added>
      <filename>themes/default/views/index.builder</filename>
    </added>
    <added>
      <filename>themes/default/views/index.erb</filename>
    </added>
    <added>
      <filename>themes/default/views/layout.erb</filename>
    </added>
    <added>
      <filename>themes/default/views/post.builder</filename>
    </added>
    <added>
      <filename>themes/default/views/post.erb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -2,7 +2,7 @@ require 'yaml'
 require 'ostruct'
 require 'pathname'
 
-MARLEY_ROOT = File.join(File.dirname(__FILE__), '..', '..') unless defined?(MARLEY_ROOT)
+MARLEY_ROOT = File.join(File.expand_path(File.dirname(__FILE__)), '..', '..') unless defined?(MARLEY_ROOT)
 
 module Marley
 
@@ -46,8 +46,6 @@ module Marley
   # == Wrapping configuration
   class Configuration
 
-    # Theme = Struct.new(:name, :directory, :views, :public) unless defined? Theme
-
     class &lt;&lt; self
 
       # Load configuration form YAML
@@ -55,11 +53,7 @@ module Marley
       def load
         raw_config = YAML.load_file( File.join(MARLEY_ROOT, 'config', 'config.yml') )
         @@config   = nested_hash_to_openstruct(raw_config)
-        # theme_name = @@config.theme || default_theme_name
-        # @@theme    = Theme.new( theme_name,
-        #                Pathname.new( File.join(themes_directory, theme_name) ),
-        #                Pathname.new( File.join(themes_directory, theme_name, 'views') ),
-        #                Pathname.new( File.join(themes_directory, theme_name, 'public') ) )
+
         @@theme   = Theme.new(@@config)
       end
 
@@ -105,4 +99,4 @@ module Marley
   # Autoload
   Configuration.load
 
-end
\ No newline at end of file
+end</diff>
      <filename>app/lib/configuration.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,4 @@
-MARLEY_ROOT = File.join(File.dirname(__FILE__), '..') unless defined?(MARLEY_ROOT)
+MARLEY_ROOT = File.join(File.expand_path(File.dirname(__FILE__)), '..') unless defined?(MARLEY_ROOT)
 
 $LOAD_PATH.unshift File.join( File.dirname(__FILE__), '..', 'vendor/sinatra-sinatra/lib' ) # Edge Sinatra
 $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'vendor')
@@ -28,8 +28,11 @@ configure do
     :adapter =&gt; 'sqlite3',
     :database =&gt; File.join(Marley::Configuration.data_directory, 'comments.db')
   )
-  # Set paths to views
-  set :views =&gt; Marley::Configuration.theme.directory
+  # Set paths to views and public
+  set :views  =&gt; Marley::Configuration.theme.views.to_s
+  set :public =&gt; Marley::Configuration.theme.public.to_s
+  # set :public =&gt; '/Users/karmi/Projects/Restafari_org/Application/marley/themes/default/public'
+  # set :public =&gt; '/Users/karmi/Projects/Restafari_org/Application/marley/app/../themes/default/public'
 end
 
 configure :production do
@@ -59,11 +62,11 @@ helpers do
   end
 
   def not_found
-    File.read( File.join( File.dirname(__FILE__), 'public', '404.html') )
+    File.read( File.join( Sinatra::Application.public, '404.html') )
   end
 
   def error
-    File.read( File.join( File.dirname(__FILE__), 'public', '500.html') )
+    File.read( File.join( Sinatra::Application.public, '500.html') )
   end
 
   def config
@@ -152,4 +155,4 @@ get '/about' do
   &quot;&lt;p style=\&quot;font-family:sans-serif\&quot;&gt;I'm running on Sinatra version &quot; + Sinatra::VERSION + '&lt;/p&gt;'
 end
 
-# -----------------------------------------------------------------------------
\ No newline at end of file
+# -----------------------------------------------------------------------------</diff>
      <filename>app/marley.rb</filename>
    </modified>
    <modified>
      <diff>@@ -36,10 +36,6 @@ load File.join(MARLEY_ROOT, 'config', 'db_create_comments.rb' )
 
 class MarleyTest &lt; Test::Unit::TestCase
 
-  configure do
-    set :views =&gt; Marley::Configuration.theme.directory
-  end
-
   def test_should_show_index_page
     get '/'
     assert @response.status == 200</diff>
      <filename>app/test/marley_test.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>app/public/404.html</filename>
    </removed>
    <removed>
      <filename>app/public/500.html</filename>
    </removed>
    <removed>
      <filename>app/public/favicon.ico</filename>
    </removed>
    <removed>
      <filename>app/public/images/bg/about.h.png</filename>
    </removed>
    <removed>
      <filename>app/public/images/bg/comment-header-line.png</filename>
    </removed>
    <removed>
      <filename>app/public/images/bg/divider-floral.png</filename>
    </removed>
    <removed>
      <filename>app/public/images/bg/header-comment-form.png</filename>
    </removed>
    <removed>
      <filename>app/public/images/bg/restafari.header.bg.png</filename>
    </removed>
    <removed>
      <filename>app/public/images/comment-added-tick.png</filename>
    </removed>
    <removed>
      <filename>app/public/images/floral.karmi.png</filename>
    </removed>
    <removed>
      <filename>app/public/images/footer-linka.png</filename>
    </removed>
    <removed>
      <filename>app/public/images/marley.bubble.png</filename>
    </removed>
    <removed>
      <filename>app/public/images/rss.icon.12x12.png</filename>
    </removed>
    <removed>
      <filename>app/public/javascripts/application.js</filename>
    </removed>
    <removed>
      <filename>app/public/stylesheets/comment_form.css</filename>
    </removed>
    <removed>
      <filename>app/public/stylesheets/master.css</filename>
    </removed>
    <removed>
      <filename>themes/default/comments.builder</filename>
    </removed>
    <removed>
      <filename>themes/default/index.builder</filename>
    </removed>
    <removed>
      <filename>themes/default/index.erb</filename>
    </removed>
    <removed>
      <filename>themes/default/layout.erb</filename>
    </removed>
    <removed>
      <filename>themes/default/post.builder</filename>
    </removed>
    <removed>
      <filename>themes/default/post.erb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>0e3a8d7cb306e16dcf04263922b95a7877a12421</id>
    </parent>
  </parents>
  <author>
    <name>Karel Minarik</name>
    <email>karmi@karmi.cz</email>
  </author>
  <url>http://github.com/lukeredpath/marley/commit/c7b9a46a57779c136410870056a804b9297d28e2</url>
  <id>c7b9a46a57779c136410870056a804b9297d28e2</id>
  <committed-date>2009-02-13T15:40:13-08:00</committed-date>
  <authored-date>2009-02-13T15:40:13-08:00</authored-date>
  <message>Shift all files from &quot;views&quot; and &quot;public&quot; into &quot;themes/default&quot; directory.</message>
  <tree>4646152458418c761e3c07f31bcb8b63e26653f2</tree>
  <committer>
    <name>Karel Minarik</name>
    <email>karmi@karmi.cz</email>
  </committer>
</commit>
