<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/exceptions.rb</filename>
    </added>
    <added>
      <filename>themes/default/content/pages/default.html</filename>
    </added>
    <added>
      <filename>themes/default/content/pages/getting_started.html</filename>
    </added>
    <added>
      <filename>themes/default/content/protected-pages/default.html</filename>
    </added>
    <added>
      <filename>themes/default/content/protected-pages/get_bookmarklet.html</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -10,15 +10,15 @@ class ContentController &lt; ApplicationController
     render_page('protected-pages')
   end
 
-
   protected
-
+
   def render_page page_path
-    page_locale = locale || params[:locale] || params[:language] || &quot;en_US&quot;
     url_key = params[:content_page].join('/')
-    content_page = &quot;#{RAILS_ROOT}/content/#{page_path}/#{page_locale}/#{url_key}.html&quot;
+    path = File.join(RAILS_ROOT, 'themes', current_theme, 'content', page_path, url_key)
+    content_page = Dir.glob(&quot;#{path}.*&quot;).first
+    raise Exceptions::MissingTemplateError, &quot;Could not find template for: '#{path}'&quot; if content_page.nil?
     render :file =&gt; content_page, :layout =&gt; true
-  rescue
+  rescue Exceptions::MissingTemplateError =&gt; ex
     render :file =&gt; &quot;#{RAILS_ROOT}/public/404.html&quot;, :status =&gt; 404
   end  
 </diff>
      <filename>app/controllers/content_controller.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>content/pages/en_US/default.html</filename>
    </removed>
    <removed>
      <filename>content/pages/en_US/getting_started.html</filename>
    </removed>
    <removed>
      <filename>content/protected-pages/en_US/default.html</filename>
    </removed>
    <removed>
      <filename>content/protected-pages/en_US/get_bookmarklet.html</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>eb91a12a80d29d8677423785971fa5426ecc7b6f</id>
    </parent>
  </parents>
  <author>
    <name>Justin Ball</name>
    <email>justinball@gmail.com</email>
  </author>
  <url>http://github.com/jbasdf/luvfoo/commit/666def79cbd63a6bf5c9447b91234bc701269c99</url>
  <id>666def79cbd63a6bf5c9447b91234bc701269c99</id>
  <committed-date>2009-05-12T09:28:15-07:00</committed-date>
  <authored-date>2009-03-06T15:59:53-08:00</authored-date>
  <message>updated content system to work with themes</message>
  <tree>c48c63a7096a0fd430d46839ce16722869c9dffa</tree>
  <committer>
    <name>Justin Ball</name>
    <email>justinball@gmail.com</email>
  </committer>
</commit>
