Marty Oehme
7ee8d4911e
Formatters have been classes so far which contained some data (the tamplate to use for formatting and the annotations and documents to format) and the actual formatting logic (an execute function). However, we can inject the annotations to be formatted and the templates so far are static only, so they can be simple variables (we can think about how to inject them at another point should it come up, no bikeshedding now). This way, we can simply pass around one function per formatter, which should make the code much lighter, easier to add to and especially less stateful which means less areas of broken interactions to worry about. |
||
---|---|---|
.. | ||
__init__.py | ||
annotation.py | ||
exporter.py | ||
extractor.py | ||
formatter.py |