I just catched the idea and made a quick&dirty KDL to HTML converter.
- make a Proof-of-Concept version
- handle
div#container.light-theme
asdiv id="container" class="light-theme"
- add "raw" nodes just to be able to insert text nodes between html ones