|
|
|
|
|
by bornfreddy
1515 days ago
|
|
I mean, that's all cool, except now the next person needs to know (or learn) Apache directives. I would assume that intern is more likely to know PHP or JS. This solution is a compromise at best, and to me it doesn't sound like Apache is a good choice here (granted, there could be other circumstances I am not aware of). If I received your code I would start by rolling my eyes, then by wasting some time learning Yet Another Technology (TM) that I will likely forget before the next time it comes handy. In my experience, if you care about maintenance, one should stick to the worn path unless they have a good reason not to. > It's cool that Apache also supports conditionals. <...shudders...> |
|
I wouldn't suggest using it for anything complex but it's ideal for inserting common headers and footers into static HTML.
Plus, it's using fewer technologies than anything you suggest. Less to maintain, less to go wrong. Sounds like a winner.