This isn't a silver bullet, but perhaps the open-source tool, Emmet [0], can help remove some/much of the drudgery. There's a little demo on its docs page[1] and here's how it's described there:
Emmet takes the snippets idea to a whole new level: you can type CSS-like expressions that can be dynamically parsed, and produce output depending on what you type in the abbreviation. Emmet is developed and optimised for web-developers whose workflow depends on HTML/XML and CSS, but can be used with programming languages too.
There are also a bunch of YouTube videos about it.[2]
(It even has a Wikipedia page[3]).
[2] https://www.google.com/search?q=site%3Ayoutube.com+emmet&ie=...