We use go's text/template and html/template packages to build out an mjml message before rendering the mjml.
However in this case(common) or other misusage if you have something like <mj-text> before <mjml> then the library just outputs the content before the <mjml> block instead of returning an error.
It'd be helpful if an error was returned if the first element encountered is not <mjml>
Example: https://go.dev/play/p/XjZNct1osO4
We use go's text/template and
html/templatepackages to build out an mjml message before rendering the mjml.However in this case(common) or other misusage if you have something like
<mj-text>before<mjml>then the library just outputs the content before the<mjml>block instead of returning an error.It'd be helpful if an error was returned if the first element encountered is not
<mjml>Example: https://go.dev/play/p/XjZNct1osO4