Module: Ramaze::View::RedCloth
- Defined in:
- lib/ramaze/view/redcloth.rb
Class Method Summary collapse
Class Method Details
.call(action, string) ⇒ Object
9 10 11 12 13 14 15 16 17 18 |
# File 'lib/ramaze/view/redcloth.rb', line 9 def self.call(action, string) restrictions = action.variables[:redcloth_options] || [] rules = action.variables[:redcloth_options] || [] erubis, _ = Ramaze::View::Erubis.call(action, string) redcloth = ::RedCloth.new(erubis, restrictions) html = redcloth.to_html(*rules) return html, 'text/html' end |