Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I use templates to generate static web pages?

Tags:

html

templates

I want to add one HTML file into another.

For example: I have header.html and footer.html Now I am trying to create aboutus.html where I want to add these two HTML files there is no dynamic code in these file except JavaScript.

How can I do this without using any scripting language except JavaScript and CSS?

like image 681
maxjackie Avatar asked Dec 01 '22 12:12

maxjackie


2 Answers

Server Side Includes (SSI) exist for this particular functionality. However, you need to have the server configured for such includes. Apache supports it. Not sure about other web servers.

like image 128
Alan Haggai Alavi Avatar answered Dec 04 '22 14:12

Alan Haggai Alavi


or Server Side Includes (SSI), all embedding is done there on the server side...

like image 30
PhilS Avatar answered Dec 04 '22 12:12

PhilS