Module: MarkdownHandler::Handler
- Defined in:
- lib/markdown_handler/handler.rb
Class Method Summary collapse
Class Method Details
.call(template) ⇒ Object
8 9 10 11 |
# File 'lib/markdown_handler/handler.rb', line 8 def self.call(template) compiled_template = erb.call(template) "MarkdownHandler::Handler.render(begin;#{compiled_template};end)" end |
.render(source) ⇒ Object
13 14 15 |
# File 'lib/markdown_handler/handler.rb', line 13 def self.render(source) markdown.render(source).html_safe end |