Class: Stratus::TextileTag
- Inherits:
-
Liquid::Block
- Object
- Liquid::Block
- Stratus::TextileTag
- Defined in:
- lib/stratus/tags/textile.rb
Instance Method Summary collapse
-
#render(context) ⇒ Object
include Liquid::StandardFilters.
Instance Method Details
#render(context) ⇒ Object
include Liquid::StandardFilters
6 7 8 9 10 11 12 13 |
# File 'lib/stratus/tags/textile.rb', line 6 def render(context) if defined?(RedCloth) RedCloth.new( super.to_s ).to_html else puts "You must had RedCloth installed to render textile!" super.to_s end end |