Create two html from one content file

Is this possible? Basically I’m using hugo as a workaround for building HTML emails. We have a content file and several partials. I build things in modules like so
[[module]]
path='something/something/something’
variable1='blah’
variable2=‘blah’

[[module]]
path='something/something/something’
variable1='blah’
variable2=‘blah’

then we take each module and add a footer and header to the top in the template file and TADA, html email that has modules that work forever with titles and copy and everything.

What I want to do now is take the one content file and create two outputs. One that is HTML and another that is a text version right now the modules we use are segregated by email/text so the path would have to be modified as well though that’s easy enough with the replace function but is there a way to create two html files?

using Hugo for html emails???

For emails we use sendy here…

There are far better ways to make the HTML file I know. This is just what we’re stuck with right now. Though sendy looks like it’s just for sending the HTML files out in an email. That’s not an issue for us, the creation of the HTML is though, and it’s a double process to create a text version which can be frustrating.

Using hugo for making HTML emails is a nice idea especially if you want to display historical newsletters etc., (Thanks for the tip)

I have not seen multiple outputs possible (from the configuration) to a single file. If you are okay with a hack, I’d propose a script that will create symlinks from files in one directory to another to achieve this.

If you are okay to getting the data in two tabs one with text and another in html, you could try using the same {{ .Content}} to achieve that with using some ReplaceRE function or using javascript.