Closed victordarras closed 3 years ago
Hi, I'd like to use a standard rails image_tag in my template, but MJML seems to ignore it, am I doing it wrong ?
image_tag
<mjml> <mj-body> <mj-section > <mj-column> <%= image_tag('logo_colored_horiz.png', width: "120" ) %> </mj-column> </mj-section> </mj-body> </mjml>
Nevermind, I found another solution that work perfectly with :
<mj-image src="<%= image_url('logo_colored_horiz.png') %>" width="120">
@victordarras Nice one, that's how I call images and other assets too.
Hi, I'd like to use a standard rails
image_tag
in my template, but MJML seems to ignore it, am I doing it wrong ?