anki/pylib
Damien Elmes 2a0b480103 add context to card rendering, and rework related hooks
- the context exists for the lifecycle of one card's render,
and caches calls to things like .card() to avoid add-ons needing to
do their own cache management.
- add-ons can optionally add extra data to the context if they need
it across multiple filters
- removed card_will_render. the legacy hook is still available for
now
- card_did_render is now called only once, with both front and back
text
2020-01-17 09:30:42 +10:00
..
anki add context to card rendering, and rework related hooks 2020-01-17 09:30:42 +10:00
tests remove _hook/_filter suffix 2020-01-15 16:53:24 +10:00
tools add context to card rendering, and rework related hooks 2020-01-17 09:30:42 +10:00
.gitignore tweaking the folder names again 2020-01-03 07:48:38 +10:00
.isort.cfg tweaking the folder names again 2020-01-03 07:48:38 +10:00
.pylintrc tweaking the folder names again 2020-01-03 07:48:38 +10:00
Makefile clean stale build folders before build 2020-01-15 10:07:39 +10:00
mypy.ini check_untyped_defs in mypy for pylib 2020-01-16 08:10:49 +10:00
requirements.dev switch to classes for hooks 2020-01-14 08:54:07 +10:00
setup.py include py.typed for mypy 2020-01-13 21:18:03 +10:00