Module: MarkdownHandler
- Defined in:
- lib/change_log/markdown_handler.rb
Class Method Summary collapse
Class Method Details
.call(template) ⇒ Object
8 9 10 11 |
# File 'lib/change_log/markdown_handler.rb', line 8 def self.call(template) compiled_source = erb.call(template) "RDiscount.new(begin;#{compiled_source};end).to_html" end |
.erb ⇒ Object
4 5 6 |
# File 'lib/change_log/markdown_handler.rb', line 4 def self.erb @erb ||= ActionView::Template.registered_template_handler(:erb) end |