Ask HN: Server-side HTML Templates based on DOM?
For side projects I’ve used BeautifulSoup in Python to break down HTML documents into the DOM, manipulate them at the DOM level, then serve them to a browser.

For instance the “main template” for a site could be an HTML page that has a

inside it which is a placeholder for the content. The content is itself an HTML page, and the of the content is inserted into the , also the metadata gets merged so the passes through.

You might write

 First Name: Read more

⤋ Read More