diff --git a/lib/mjml.rb b/lib/mjml.rb index 81ac65a..3167c99 100644 --- a/lib/mjml.rb +++ b/lib/mjml.rb @@ -49,7 +49,7 @@ def call(template) # by MJML library when top-level layout/template is rendered # # [0] - https://github.com/mjmlio/mjml/blob/master/doc/guide.md#mjml - if template.source =~ // + if compiled_source =~ // "Mjml::Mjmltemplate.to_html(begin;#{compiled_source};end).html_safe" else compiled_source