Skip to content

Commit

Permalink
Resolves sighmon#34
Browse files Browse the repository at this point in the history
  • Loading branch information
sbiastoch committed Jul 20, 2018
1 parent 95a9f00 commit 9cbcd1a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mjml.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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 =~ /<mjml>/
if compiled_source =~ /<mjml>/
"Mjml::Mjmltemplate.to_html(begin;#{compiled_source};end).html_safe"
else
compiled_source
Expand Down

0 comments on commit 9cbcd1a

Please sign in to comment.