Headless Server Developer Manual / Version 2301
Table Of ContentsContext Handlers (not to be confused with the context type) define a modification on the context stack, whenever the rule of the corresponding event matcher applies. There are currently two styles of context handlers:
!Push # or !ReplacePush
Property | Description |
---|---|
contextName | The name of the context to install on top of the stack. |
replacementName | For !ReplacePush context handler only! The name of the context to replace the current context with. |
Table 5.4. Available properties for !Push and !ReplacePush.
Example:
contexts: - !Context name: headline defaultHandler: !Handler eventMatcher: ... contextHandler: !Push { writeCharacters: true } ...