19. A non-transitory computer readable storage medium comprising computer executable program code, which when executed by a computer system caused the computer system to perform steps comprising: receiving a document having: markup language constructs comprising a plurality of tags in a first section of the document comprising a first plurality of lines of code; and object oriented language constructs in a second section of the document separate from the first section of the document and comprising one or more class declarations, each class declaration comprising a second plurality of lines of code wherein one or more of the class declarations correspond to tags in the first section and have class names the same as tag names of the corresponding tags; and performing a step of class processing on a first tag among the plurality of tags in the markup language constructs, including: executing the body of the first tag and producing tag output; and subsequent to executing the first tag, invoking a predefined method referenced in a class declaration having a class name the same as the first tag, and during invocation of the predefined method accessing the tag output produced as a result of executing the body of the first tag.
19. A non-transitory computer readable storage medium comprising computer executable program code, which when executed by a computer system caused the computer system to perform steps comprising: receiving a document having: markup language constructs comprising a plurality of tags in a first section of the document comprising a first plurality of lines of code; and object oriented language constructs in a second section of the document separate from the first section of the document and comprising one or more class declarations, each class declaration comprising a second plurality of lines of code wherein one or more of the class declarations correspond to tags in the first section and have class names the same as tag names of the corresponding tags; and performing a step of class processing on a first tag among the plurality of tags in the markup language constructs, including: executing the body of the first tag and producing tag output; and subsequent to executing the first tag, invoking a predefined method referenced in a class declaration having a class name the same as the first tag, and during invocation of the predefined method accessing the tag output produced as a result of executing the body of the first tag. 20. The non-transitory computer readable storage medium of claim 19 wherein, while executing the body of the first tag, if a child tag of the first tag corresponds to a class variable defined in a class that corresponds to the first tag, then producing output from the child tag and associating the output with the class variable.