Replies: 2 comments 2 replies
-
You might be able to run it inside an event like Regarding consistency between app/email components that would be a dream for sure, but the reality is that whatever you have coded for the web will at best not render the same in an email client, and will very likely look completely broken in clients like Outlook. Since you've opened the subject, just laying out some thoughts... It would be fantastic if we somehow refactored at least the Components in Maizzle to work more like in Vue and Nuxt specifically... like you'd define the components folder like today, and it would autoload all of them and you'd write the tag and pass data just like in Nuxt, i.e.: <!-- src/components/EmailFooter.html -->
<div>{{ copyright }}</div> <!-- used in a template -->
<email-footer :copyright="(C) 2022 Maizzle" /> This could possibly run before PostHTML to avoid any complications like with self-closing tags or with passing data/expressions, completely removing the need for It would be a 'true' components approach and it would even allow creating predefined components that people with no HTML email experience could use to easily develop emails - kind of like in MJML but truly open and customizable. Would love to work with someone to bring this in Maizzle, it's something I don't have a lot of experience with so I'm open to ideas :) |
Beta Was this translation helpful? Give feedback.
-
I understood you'd be using components coded for web in an HTML email - there are many things that Outlook on Windows does not support, starting with basic stuff like width/max-width, padding on any elements except table cells or even CSS background images (flex/grid is out of the question). |
Beta Was this translation helpful? Give feedback.
-
Hello,
Would it theoretically be possible to somehow support Vue.js or at least compile individual components into HTML and inject them into templates?
I'm wondering how to easily get consistency in design and share design parts between the application and the mail templates
Beta Was this translation helpful? Give feedback.
All reactions