This PR introduces the postprocessing infrastructure
To be able to apply actions on finished documents (create a table of contents, ...) this postprocessing
infrastructure was introduced.
Its central supervisor class is PostProcessingAdministrator.
An adminstrator keeps a list of all added postprocessors (implementing PostProcessor) and is passed to the template when document generation is started.
Once the document generation is finished, the administrator is invoked and the document and the resolver are passed to it.
The administrator then loops through all registered postprocessors and invokes them, passing them the resolver and the finished document.
A reference implementation (WordCount) was added to test the infrastructure and demonstrate its workflow.
This PR introduces the postprocessing infrastructure
To be able to apply actions on finished documents (create a table of contents, ...) this postprocessing infrastructure was introduced. Its central supervisor class is PostProcessingAdministrator. An adminstrator keeps a list of all added postprocessors (implementing PostProcessor) and is passed to the template when document generation is started. Once the document generation is finished, the administrator is invoked and the document and the resolver are passed to it. The administrator then loops through all registered postprocessors and invokes them, passing them the resolver and the finished document.
A reference implementation (WordCount) was added to test the infrastructure and demonstrate its workflow.