Skip to content
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

Cannot mj-include inside mj-attributes #501

Open
LorenzoLeonardini opened this issue Dec 19, 2024 · 0 comments
Open

Cannot mj-include inside mj-attributes #501

LorenzoLeonardini opened this issue Dec 19, 2024 · 0 comments

Comments

@LorenzoLeonardini
Copy link

The following examples, in MJML produce the same result:

main.mjml:

<mj-head>
  <mj-attributes>
    <mj-include path="./test.mjml" />
  </mj-attributes>
</mj-head>

test.mjml:

<mj-button background-color="red" />

and

main.mjml:

<mj-head>
  <mj-include path="./test.mjml" />
</mj-head>

test.mjml:

<mj-attributes>
  <mj-button background-color="red" />
</mj-attributes>

However, in MRML, only the second scenario works, if the mj-include is placed inside mj-attributes the output does not have the included "styles"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant