jdrouet / mrml

Implementation of mjml in rust
MIT License
330 stars 19 forks source link

mj-include for css does not work #386

Closed jaredculp closed 5 months ago

jaredculp commented 5 months ago

I have tried both of the following:

# in style.css
.container { background-color: #fffaee; padding: 48px 0px; }

# in template.mjml
<mjml>
  <mj-head>
    <mj-include path="style.css" type="css" />
  </mj-head>
  <mj-body>
  ...
  </mj-body>
</mjml>
# in style.mjml
<mj-style>
.container { background-color: #fffaee; padding: 48px 0px; }
</mj-style>

# in template.mjml
<mjml>
  <mj-head>
    <mj-include path="style.mjml" />
  </mj-head>
  <mj-body>
  ...
  </mj-body>
</mjml>

Neither of which ends up in the output HTML. I see this isn't expected to work with inline but wanted to know if this should work.

jdrouet commented 5 months ago

Fixed in latest release 😉

jaredculp commented 5 months ago

Thanks for the quick turnaround @jdrouet !