Merge branch 'master' into 11060-all-visible-repos
[arvados.git] / doc / zenweb-textile.rb
index bdd716267bc569b00a2d54ceb6c53fa83fa7b9e7..0a4bb6f8c73408a13c07c9d7f5b6036fd1b097a3 100644 (file)
@@ -10,14 +10,8 @@ module Zenweb
     ##
     # Render a page's textile and return the resulting html
     def render_textile page, content
-      textile body
-    end
-
-    ##
-    # Render textile in +content+ 
-    def textile content
       require 'RedCloth'
-      @textile = RedCloth.new(content).to_html
+      RedCloth.new(content ? content : self.body).to_html
     end
   end
 end