So what did you go with?
I would do it by breaking up the files.
So, for example, I might have:
And then sidebar.asp simply #include's those 3 files. Whereas a page that needs only the body of the sidebar #include's sidebar-body.asp.
And so on.
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.