Represents the primary template associated with the whole document being currently generated.

If the current template is a primary one or the main template, the property returns the GOMContext object representing the current template, that is:

documentContext == thisContext
Otherwise, the document context is inherited from the parent template (from which the given template was called), that is:
documentContext == parentContext.documentContext
Legacy Note:
This property formerly had a different name: 'rootContext'. It was renamed for better clarity. The old name still works, however, should not be used.
See Also:
GOMContext.thisContext, GOMContext.parentContext, GOMContext.mainContext