Hacker News new | ask | show | jobs
by erichurkman 4613 days ago
If you are programatically generating emails, there are libraries for most popular languages that will convert an external stylesheet into inline styles - for example, pynliner [1] for Python.

They let you write HTML and CSS, test in the browser, and only at the last moment convert `p { text-color: #333 }` and `<p>..</p>` to `<p style="color: #333">`

[1] https://github.com/rennat/pynliner