3 ms·
A good way to have file-system based routing is to actually use files. And the inclusion of common parts can easily be done on the server-side or locally on the
by p4bl0 4y ago
A good way to have file-system based routing is to actually use files. And the inclusion of common parts can easily be done on the server-side or locally on the development machine using PHP's include directive.
Using PHP as a template language, it is trivial to generate static HTML content by calling PHP from the command line on your files (this is easily automated to scale for many many pages website) to be able to host the result everywhere even on hostings that do not have PHP :).