Use Vue for HTML email templating #229
boonyasukd
started this conversation in
Ideas
Replies: 0 comments
# for free
to join this conversation on GitHub.
Already have an account?
# to comment
-
I'm recently tasked with generating HTML emails, and have been seeking for a way to utilize type-safe HTML templating for ease of maintenance. With Vue 3 and Volar, type-safe templating becomes possible, so I'm exploring whether SSG is a viable solution or not.
So far, I found out that
vite-ssg
in its current form might not fit the use case. The reason is that the generated HTML isn't truly zero Javascript: from readme, it seems to rely on data hydration for the page to work correctly, while for HTML email, Javascript is usually stripped out for safety reasons.Is there a way to have "HTML only" generation mode in
vite-ssg
? Or should I be looking at other solutions instead?Beta Was this translation helpful? Give feedback.
All reactions