Thanks for the reply Abhijat (and everyone else), I think I will go
with your solution. I'll start coding now and see how it goes. FYI,
the reason I am doing this is so I can set up environments for
development, testing, integeration (and production, but this will be
disabled there) and have the contents of the returned HTML altered
based on those configurations. Doing this allows up to have a simple
environment variable set and have the page altered based on that
variable so that developers/testers etc. know which environment they
are working on. This way I don't have to have every page, or what-not,
contain code for this environment aware feature. Hope that explains
it.
If anyone has tackled this issue more easily, let me know. Perhaps I
am making this a bit too complicated, but when it's running, it seems
like it could work nicely. Though, a bit of processing, but that is
only in the non-production environments.
|