lib/gumdrop/view_helpers.rb in gumdrop-0.2.4 vs lib/gumdrop/view_helpers.rb in gumdrop-0.2.7
- old
+ new
@@ -1,12 +1,17 @@
module Gumdrop
module ViewHelpers
- # Handy for hiding a block of unfinished code
- # def hidden(&block)
- # #no-op
- # end
+ def hidden(&block)
+ #no-op
+ end
+
+ def markdown(source)
+ m= Tilt['markdown'].new { source }
+ m.render
+ end
+
def gumdrop_version
::Gumdrop::VERSION
end
\ No newline at end of file