Class: ActionView::MdownHandler
- Inherits:
-
TemplateHandler
- Object
- TemplateHandler
- ActionView::MdownHandler
- Defined in:
- lib/mdown_handler.rb
Instance Method Summary collapse
Instance Method Details
#render(template, local_assigns) ⇒ Object
9 10 11 12 |
# File 'lib/mdown_handler.rb', line 9 def render(template, local_assigns) txt = ERB.new(template.source).result(@view.send(:binding)) RDiscount.new(txt).to_html end |