We have some old html files on the website that have copyright year on the bottom of the page (from include file). We are trying to find a way to update that dynamically to current year so the include file does not need to be edited every year. We are using asp and .net on the same server so there might be ways to use those technologies to accomplish this.
I am thinking of several ways this could be possibly accomplished but I am sure I am missing something. Maybe some sort of token replacement that could be done or something.
Here are few options that I am thinking about.
A process on the server that will check for year change once a day and rewrite the include files or would be triggered once a year by a scheduled task.
A web application that when accessed would check out the current year and write it to include files. It would need a permission to write to the disk. Then access it with something like wget with a scheduled task once a year or manually when it is time.
Embed the javascript as part of the non-asp include files that would update the year dynamically before pages finish loading. This is among the easiest ways to accomplish this, but probably not the best.
Finding a way to process files before they are embedded.
Enable asp processing on html files. This is undesireable due to server load it might cause.