<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,3 +1,13 @@
+= Embedit Support
+
+I've quickly added Embedit support in Mephisto. All you need is to surround your url with 
+
+&lt;embedit&gt; --Url Goes Here-- &lt;/embedit&gt;
+
+If you don't know what Embedit is, go check out http://embedit.me.
+
+
+
 = Installation
 
 See public/install.html for setup instructions.</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -8,6 +8,18 @@ class Article &lt; Content
   has_permalink :title, :scope =&gt; :site_id
   after_save    :save_assigned_sections
   after_update  :reset_comment_attributes
+  
+  # Turn any &lt;embed&gt;&lt;/embed&gt; tags into embedabble feature
+  before_save :create_embeddables
+  
+  def create_embeddables
+    self.body.scan(/&lt;embedit&gt;.+&lt;\/embedit&gt;/).each do |embed|
+      url = EmbeditRuby.new(embed.scan(/&lt;embedit&gt;(.+)&lt;\/embedit&gt;/).to_s)
+      if url.valid? == 'true'
+        self.body.gsub!(embed, &quot;&lt;center&gt;#{url.html}&lt;/center&gt;&quot;)
+      end
+    end
+  end
 
   acts_as_versioned :if_changed =&gt; [:title, :body, :excerpt], :limit =&gt; 5 do
     def self.included(base)</diff>
      <filename>app/models/article.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>71d187b05929649118ddd3cb13a253b27ab5969b</id>
    </parent>
  </parents>
  <author>
    <name>Red Davis</name>
    <email>reddavis@gmail.com</email>
  </author>
  <url>http://github.com/reddavis/mephisto/commit/ce15790ade0264b2cabdb0773dd038a6204efbb3</url>
  <id>ce15790ade0264b2cabdb0773dd038a6204efbb3</id>
  <committed-date>2008-11-16T15:52:01-08:00</committed-date>
  <authored-date>2008-11-16T15:52:01-08:00</authored-date>
  <message>add readme</message>
  <tree>2389757eba7c05b3f6c41922635376818c03212b</tree>
  <committer>
    <name>Red Davis</name>
    <email>reddavis@gmail.com</email>
  </committer>
</commit>
