I would like to exclusively have a rest backend with every other part of the site being fully static. In order to do this I need a js libarary that makes the users browser download and stitch together HTML files for content, header, sidebar, etc. Is there a libary that lets me do this? Which basicly creates a custom tag or something that lets me create sites like this:
<html> <--!doctype--> <include doc="header.html"> <include doc="doc1.html"> <include doc="sidebar.html"> <include doc="footer.html"> </html>
Basicly stuff thats usually done on the backend is move to the client computer for security and perfomance reasons (critical data is only acessed through rest objects).
Is there a libary that helps me realize such a design? Because I also want to be able to cache the static site content and that is a lot easier when I can just keep it on apaches static directory instead of creating django requests.