-
-
Notifications
You must be signed in to change notification settings - Fork 65
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 4.2.0 breaks email rendering #36
Comments
I'm afk, but you definitely don't have any |
No, I don't have any |
@pbougie in the new tests, @aleksandrs-ledovskis includes this line: self.view_paths = File.expand_path("../views", __FILE__) Does that help your missing templates issue? Could you write a new test using your layout names and structure that fails? |
I don't have a missing templates issue. In the example above, the templates are found but the MJML is not rendered. I end up with little formatting and a bunch of CSS with my text. If I inspect the code, I see a bunch of |
No, the |
@pbougie and if you create a simple non-layout based template, does it render okay? |
I removed the layout and partials, and unfortunately I'm getting the same result. |
I've created a test project that you can fork: https://github.com/pbougie/mjml-rails-issue-36 |
@pbougie Awesome thanks. It's the The bug was introduced here: Would you like to propose a fix and submit a pull request? I wonder whether this regex is too broad? |
@pbougie Brilliant, thank you for persisting! I've merged that in now and pushed a new version. |
@sighmon Thanks! |
My setup includes email templates, partials, and layouts. Using version 4.1.0, everything renders beautifully. Update to version 4.2.0 (or 4.2.1) and all the files are loading correctly but the MJML does not render into HTML.
I've tried renaming the files as described in the new README but it doesn't help. Tried different variations but nothing worked. Either the template is not found or the MJML does not render.
Working setup in version 4.1.0:
Non-working setup in version 4.2.1
No errors are thrown but the MJML is not converted into HTML. The log shows all templates and layouts are found and rendered.
The text was updated successfully, but these errors were encountered: