<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -24,7 +24,7 @@ For example, the following code with formal calls:
 
 Is equivalent to this one with lazy calls:
 
-    bounding_box [100,600], :width =&gt; 200 do
+    bounding_box [100, 600], :width =&gt; 200 do
       text &quot;The rain in spain falls mainly on the plains &quot; * 5
       stroke do
         line bounds.top_left,    bounds.top_right</diff>
      <filename>README.mdown</filename>
    </modified>
    <modified>
      <diff>@@ -1 +1,2 @@
-require &quot;prawn_handler&quot;
+require 'prawn_handler'
+ActionView::TemplateHandlers::Prawn.register!</diff>
      <filename>init.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,6 +1,10 @@
 module ActionView
   module TemplateHandlers
     class Prawn &lt; TemplateHandler
+      def self.register!
+        Template.register_template_handler :prawn, self
+      end
+      
       include Compilable
       
       def compile(template)
@@ -21,5 +25,3 @@ module ActionView
     end
   end
 end
-
-ActionView::Template.register_template_handler :prawn, ActionView::TemplateHandlers::Prawn</diff>
      <filename>lib/prawn_handler.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>682924850f00dfa8b8b391f66ea54e9e65c25ea9</id>
    </parent>
  </parents>
  <author>
    <name>Roman Le Negrate</name>
    <email>roman.lenegrate@gmail.com</email>
  </author>
  <url>http://github.com/Roman2K/prawn-handler/commit/c10d506939f5f45ece666dea9c742776f4f98c48</url>
  <id>c10d506939f5f45ece666dea9c742776f4f98c48</id>
  <committed-date>2009-01-30T08:15:42-08:00</committed-date>
  <authored-date>2009-01-30T08:15:42-08:00</authored-date>
  <message>register the handler from init.rb as it makes more sense</message>
  <tree>b41b32c6c200992e6761b95662b4aa673fb0ca99</tree>
  <committer>
    <name>Roman Le Negrate</name>
    <email>roman.lenegrate@gmail.com</email>
  </committer>
</commit>
