I'm wondering if there's any consideration for plaintext emails in the Foundation for Emails workflow. Emails that I send out have both a plaintext and HTML versions, so I need to be authoring both at the same time and I wouldn't mind using some of the panini templating features to provide the boilerplate text in these plaintext emails. It would be nice to be able to use the Foundation for Emails workflow for both. I've tried, but hit upon a snag.
I first created a new layout called, "plaintext.html", that just has the
tag, so that the HTML in the default.html layout isn't applied to any page that uses this layout. Then, I created a new file that uses this layout, by placing the following at the top of the file, like this,
But, these files will be minified, when I run,
npm run build
(as that's supposed to happen)
Is there a way to disable minification for specific pages that use specific layouts?
Also, the workflow seems to only look at files in ./src with a file ending of, ".html". I have to name all of my plaintext files with this filename, which could be confusing.