Can you use a code compiler to merge HTML components?

28 views Asked by At

Little context:.
I've started using Codekit (macOS) to compile my SASS code quickly. It's an amazing application, but it has me wondering about HTML compiling. I've got a client on a separate project that often changes the content of a component (including the navigation..). This change affects many pages and since the website is written in plain HTML, instead of (i.e.) a Wordpress framework, the adjustment has to be made on every .html file. To ease my task, I've converted the files to .php so I was able to use the PHP import functionality to import each frequently changing component from an external file. Now I only have to edit that file.

My question: Is there a compiling application that can merge/import multiple HTML files in a specific order/location on the file? This way I can stop using PHP's import function and remain relying on HTML files.


Perhaps an odd question where the only answer may be simply 'No, not possible'. In that case, please say so instead of closing.

0

There are 0 answers