Class: StaticMatic::TemplateHandlers::Markdown
- Inherits:
-
ActionView::TemplateHandler
- Object
- ActionView::TemplateHandler
- StaticMatic::TemplateHandlers::Markdown
- Defined in:
- lib/staticmatic/template_handlers/markdown.rb
Instance Method Summary collapse
Instance Method Details
#render(template, local_assigns = {}) ⇒ Object
6 7 8 |
# File 'lib/staticmatic/template_handlers/markdown.rb', line 6 def render(template, local_assigns = {}) ::BlueCloth::new(template.source).to_html end |