HTML inherits page layout

Is it possible for a regular html page to inherit its layout from another html page? If so, what is the most appropriate approach for this? I know that aspx uses .master pages to store elements that are common to all pages on the site.

+4
source share
2 answers

You can extract resources using JS and AJAX if you absolutely cannot use the server language.

how can we avoid repeating the header and footer code on each html page

Jekyll also works: What is the best way to manage duplicate code on static HTML websites .

+3
source

You can also use get and php variables to dynamically create and display content and not use more than one HTML

0
source

Source: https://habr.com/ru/post/1384072/


All Articles