<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>lib/prawnto/template_handler/.base.rb.swp</filename>
    </added>
    <added>
      <filename>lib/prawnto/template_handler/.raw.rb.swp</filename>
    </added>
    <added>
      <filename>lib/prawnto/template_handler/base.rb</filename>
    </added>
    <added>
      <filename>lib/prawnto/template_handler/raw.rb</filename>
    </added>
    <added>
      <filename>test/base_template_handler_test.rb</filename>
    </added>
    <added>
      <filename>test/raw_template_handler_test.rb</filename>
    </added>
    <added>
      <filename>test/template_handler_test_mocks.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,3 @@
 .DS_Store
 **/*.swp
+reference_pdfs</diff>
      <filename>.gitignore</filename>
    </modified>
    <modified>
      <diff>@@ -1,5 +1,6 @@
 require 'prawnto'
 
 Mime::Type.register &quot;application/pdf&quot;, :pdf
-ActionView::Template.register_template_handler :prawn, Prawnto::TemplateHandler
+ActionView::Template.register_template_handler 'prawn', Prawnto::TemplateHandler::Base
+ActionView::Template.register_template_handler 'prawnx', Prawnto::TemplateHandler::Raw  # experimental
 </diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,12 @@
 require 'prawn'
 require 'prawnto/action_controller'
-require 'prawnto/template_handler'
 
+require 'prawnto/template_handler/base'
+require 'prawnto/template_handler/raw'
 
 # for now applying to all Controllers
 # however, could reduce footprint by letting user mixin (i.e. include) only into controllers that need it
-# but would does it really matter performance wise to include in a controller that doesn't need it?  doubtful.
+# but does it really matter performance wise to include in a controller that doesn't need it?  doubtful-- depends how much of a hit the before_filter is i guess.. 
 class ActionController::Base
   include Prawnto::ActionController
 end</diff>
      <filename>lib/prawnto.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,46 +6,31 @@ require 'test/unit'
 require File.dirname(__FILE__) + '/../lib/prawnto'
 
 
-module Prawnto
-  class ActionControllerTest &lt; Test::Unit::TestCase
+class ActionControllerTest &lt; Test::Unit::TestCase
 
-    def setup
-      @controller_class = Class.new(::ActionController::Base)
+  def setup
+    @controller_class = Class.new(ActionController::Base)
 
-      # for some reason using the following as a block in the preceding statement is somehow different?
-      @controller_class.module_eval do
-        prawnto :inline=&gt;true, :prawn=&gt;{:page_orientation=&gt;:landscape}
+    # for some reason using the following as a block in the preceding statement is somehow different?
+    @controller_class.module_eval do
+      prawnto :inline=&gt;true, :prawn=&gt;{:page_orientation=&gt;:landscape}
 
-        def test
-          prawnto :inline=&gt;false, :prawn=&gt;{:page_size=&gt;'A4'}
-        end
+      def test
+        prawnto :inline=&gt;false, :prawn=&gt;{:page_size=&gt;'A4'}
       end
     end
-
-    def test_inheritable_options
-      assert_equal({:page_orientation=&gt;:landscape}, @controller_class.read_inheritable_attribute(:prawn))
-      assert_equal({:inline=&gt;true}, @controller_class.read_inheritable_attribute(:prawnto))
-    end
-
-    def test_computed_options
-      controller = @controller_class.new
-      controller.test
-      assert_equal({:inline=&gt;false, :prawn=&gt;{:page_orientation=&gt;:landscape, :page_size=&gt;'A4'}}, controller.send(:compute_prawnto_options))
-    end
-
   end
 
-  class TemplateHandlerTest &lt; Test::Unit::TestCase
-
-    class ActionView; end
-    class Template; def source; return 'SOURCE'; end; end
+  def test_inheritable_options
+    assert_equal({:page_orientation=&gt;:landscape}, @controller_class.read_inheritable_attribute(:prawn))
+    assert_equal({:inline=&gt;true}, @controller_class.read_inheritable_attribute(:prawnto))
+  end
 
-    def test_valid_source
-      @template_handler = TemplateHandler.new(ActionView.new)
-      source = @template_handler.compile(Template.new).split('SOURCE')[0]
-      assert_equal TemplateHandler.line_offset, source.count(&quot;\n&quot;)
-      assert TemplateHandler.line_offset &gt; 10
-    end
+  def test_computed_options
+    controller = @controller_class.new
+    controller.test
+    assert_equal({:inline=&gt;false, :prawn=&gt;{:page_orientation=&gt;:landscape, :page_size=&gt;'A4'}}, controller.send(:compute_prawnto_options))
   end
+
 end
 </diff>
      <filename>test/action_controller_test.rb</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>lib/prawnto/template_handler.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>521ceb0987cdd95a60a50535a1bb775226c381a5</id>
    </parent>
  </parents>
  <author>
    <name>thorny_sun</name>
    <email>thorny_sun@cracklabs.com</email>
  </author>
  <url>http://github.com/thorny-sun/prawnto/commit/158da483ba19561196287f068916fe5757f51050</url>
  <id>158da483ba19561196287f068916fe5757f51050</id>
  <committed-date>2008-08-25T15:36:22-07:00</committed-date>
  <authored-date>2008-08-25T15:36:22-07:00</authored-date>
  <message>stop and breathe.  as far as compilable will go.

decided compilable templates are not what i thought they were and will
not pursue them anymore since they just make things more complicated.
It might make sense if I was translating another DSL into ruby code, but
the templates are ruby code, so it doesn't make sense (and having said
that, I don't understand why rails core compiled builder for instance
since it is just ruby code as well??).  Anyway-- so I'm checking
in the furthest I had taken compiled templates before reverting back to
the normal render.</message>
  <tree>be464c8795e4ac5f81d70f0c0b25defaa440d163</tree>
  <committer>
    <name>thorny_sun</name>
    <email>thorny_sun@cracklabs.com</email>
  </committer>
</commit>
