Module: Haml::Filters::Textile
- Includes:
- Base
- Defined in:
- lib/haml/filters.rb
Overview
Parses the filtered text with [Textile](www.textism.com/tools/textile). Only works if [RedCloth](redcloth.org) is installed.
Instance Method Summary collapse
Methods included from Base
#compile, included, #internal_compile, #lazy_require, #render_with_options
Instance Method Details
#render(text) ⇒ Object
297 298 299 |
# File 'lib/haml/filters.rb', line 297 def render(text) ::RedCloth.new(text).to_html(:textile) end |