I am searching for a client-side template engine for plain HTML pages. I am not talking about single DIV's in the page, I'm talking about the full page.
Say I have a simple webapp, with a menu, and 100 menu entries. So, there are in fact 100 different pages (100 different webapps!), and I want different urls for them:
http://mysite/myapp/page1.html
...
http://mysite/myapp/page100.html
Now, the 100 pages share a common layout (a menu bar, a header, a footer, and the whole HTML head), and I don't want to cut-and-paste them 100 times, it's absolutely wrong. I want to keep template tiles in different files, and to merge them with some client-side JS framework.
I have looked to AngularJS and to Handlebar.js, but I cannot see a simple way to do this. You always have to write tons of code.
Old technologies (FRAME's and IFRAME's) are deprecated, IMHO.
So, my question is, what are the possible solutions?
I think this is a common task, however I cannot find a clear answer.
Please notice this is a very simple task if performed server-side (with PHP, JSP, or whatever).