Anki/pylib/anki
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
..
importing check_untyped_defs in mypy for pylib 2020-01-16 08:10:49 +10:00
.gitignore add buildhash to rspy and aqt, and check all three modules match 2020-01-03 15:15:18 +10:00
__init__.py bump minimum python version from 3.6 to 3.7 2020-01-07 18:34:36 +10:00
cards.py type hints 2020-01-16 09:19:53 +10:00
collection.py add context to card rendering, and rework related hooks 2020-01-17 09:30:42 +10:00
consts.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
db.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
decks.py more tweaks for readability/consistency 2020-01-15 17:45:35 +10:00
errors.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
exporting.py more tweaks for readability/consistency 2020-01-15 17:45:35 +10:00
find.py more tweaks for readability/consistency 2020-01-15 17:45:35 +10:00
hooks.py add context to card rendering, and rework related hooks 2020-01-17 09:30:42 +10:00
lang.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
latex.py add context to card rendering, and rework related hooks 2020-01-17 09:30:42 +10:00
media.py add context to card rendering, and rework related hooks 2020-01-17 09:30:42 +10:00
models.py check_untyped_defs in mypy for pylib 2020-01-16 08:10:49 +10:00
notes.py type hints 2020-01-16 09:19:53 +10:00
py.typed mark anki and aqt modules as having typing info 2020-01-13 13:03:37 +10:00
pybackend.py use 3.7 annotations 2020-01-07 18:43:20 +10:00
rsbackend.py more useful template error message 2020-01-16 18:47:21 +10:00
sched.py Merge pull request #423 from Arthur-Milchior/fixReorder 2020-01-16 18:47:12 +10:00
schedv2.py Merge pull request #423 from Arthur-Milchior/fixReorder 2020-01-16 18:47:12 +10:00
sound.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
stats.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
statsbg.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
stdmodels.py fix stdmodels type hint 2020-01-15 15:30:40 +10:00
storage.py add a partial Python implementation of the backend 2020-01-06 12:24:47 +10:00
sync.py remove _hook/_filter suffix 2020-01-15 16:53:24 +10:00
tags.py more tweaks for readability/consistency 2020-01-15 17:45:35 +10:00
template.py add context to card rendering, and rework related hooks 2020-01-17 09:30:42 +10:00
template_legacy.py drop pystache and move legacy code into separate file 2020-01-11 19:38:30 +10:00
types.py tweaking the folder names again 2020-01-03 07:48:38 +10:00
utils.py add buildhash to rspy and aqt, and check all three modules match 2020-01-03 15:15:18 +10:00