It seems that you can mix " Option Explicit" - the code with the code is not " Option Explicit" using the instructions Execute.
Here is a little test I just did with VBScript (which also applies to classic ASP):
''
Option Explicit
Dim fso, vb2, txt
Set fso = CreateObject("Scripting.FileSystemObject")
Set vb2 = fso.OpenTextFile("vb2.vbs", 1)
txt = vb2.ReadAll
MsgBox txt ''
Execute txt
MsgBox foo ''
and
''# vb2.vbs (i.e. "their code")
j = 100
Function foo
k = 100
foo = j + k
End Function
Results in:
Message 1: (equal to the contents of vb2.vbs)
Message 2: 200
I have no idea that this is the best way to do this, but at the moment I am not thinking of a better way. Give it a try.
" ".