appContext

The appContext system variable references the current transient application context instance. Jade automatically creates a unique appContext object for each Jade application that is running and for each package that is imported (recursively) by the schema from which that application is running. The appContext is a transient instance of the ApplicationContext class.

The appContext system variable is of particular use when using packages, as it enables a package to switch context back to the context of the application that imported the package, using the Object class invokeMethod method. (For details about packages, see Chapter 8, "Using Packages".)