You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think this possibly has to do with the mjml package version being a bit out of date.
Steps to Reproduce:
Run mju --build targeting the below test.mjml file.
Run mjml test.mjml -o test-mjml.html.
The file generated by mjml represents the expected output, while the file generated by mju does not generate any of the content past the first <td> tag.
See below for the actual output. This was with the latest version of mjml-utils and 4.4.0 version of mjml.
test.mjml file:
<mjml>
<mj-head>
<mj-title>Test</mj-title>
</mj-head>
<mj-bodywidth="525px"background-color="#FFF">
<mj-wrapperfull-width="full-width">
<mj-sectionpadding-bottom="24px">
<mj-column>
<mj-text>
First test section
</mj-text>
</mj-column>
</mj-section>
<mj-section>
<mj-column>
<mj-text>
Another test section
</mj-text>
</mj-column>
</mj-section>
</mj-wrapper>
</mj-body>
</mjml>
Please note: MJML has been released in Version 4.x quite a while ago..This util package still uses mjml 3.5.x and therefore if you try to use mjml elements from the current documentation, you will get a broken output.. just happened to me also.
Maybe you don't need the utils anymore..MJML Version 4 got quite a lot of additional features..
The new update handles includes just fine, but what about for module use to Inject variables into the templates. Ideally, I would like to have multiple includes a part of a project to pull in different components to my template and then a variable file that would overwrite on a build. Any thoughts?
Also sn: I was never able to get the includes to work here might be a versioning thing, but even when I used mjml 3.5.x locally I would still get the same error on build:
mju --build -i ./in -o ./out
[MJMLError] EmptyMJMLError: No root "" or "" found in the file, or "" doesn't contain a child element.
I think this possibly has to do with the
mjml
package version being a bit out of date.Steps to Reproduce:
mju --build
targeting the belowtest.mjml
file.mjml test.mjml -o test-mjml.html
.mjml
represents the expected output, while the file generated bymju
does not generate any of the content past the first<td>
tag.See below for the actual output. This was with the latest version of
mjml-utils
and 4.4.0 version ofmjml
.test.mjml
file:mjml Test:
mju Test:
The text was updated successfully, but these errors were encountered: