Class: MJML::Railtie::Handler
- Inherits:
-
Object
- Object
- MJML::Railtie::Handler
- Defined in:
- lib/mjml/railtie.rb
Overview
Template handler for Rails
Instance Method Summary collapse
Instance Method Details
#call(template) ⇒ Object
10 11 12 13 |
# File 'lib/mjml/railtie.rb', line 10 def call(template) compiled = erb_handler.call(template) "::MJML::Parser.new.call(begin;#{compiled};end).html_safe" end |