I need to retrieve information from an API say every week where I just click on a button and I use js to retrieve the required information and display that in the DOM accordingly. However, I would like to use this newly generated site and copy that current info to be sent off in newsletters.
What's the best way to generate static HTML/CSS templates that can be used in emails since I cant use scripts dynamically in email HTML ideally. More conveniently, the emails would be sent off using Mailchimp so if there was a way to just have those dynamic parts auto-filled, that would be lovely. However, I am happy to simply copy and paste the static HTML/CSS and paste in mailchimp manually.
What's the best way to go about this please?