I am looking for a best approach to include one html file in another. Basically the need is to create one header and footer file which will be included in multiple pages across the app. The header/footer file may contain required css and js. And i may want to include some other templates which i can use for popup etc. I know we can do this by
- Ajax
- HTML5 import(not supported in most of the browser. so not useful)
Any other way? or any best way to do which will take care of the performance.
Thanks in advance...
Solution: Just wanted to update here the approach I took for this problem. I am using Grunt. So I use the include plugin available in it which I run during creating build to include different HTML files together. Thanks anyway for your time...