anki/pylib/tools
Damien Elmes f900f24f60 more changes to the template code
- _renderQA() has moved to template.py:render_card()
- dropped QAData in favour of a properly typed dict
- render_card() returns a TemplateRenderOutput struct instead of a dict
- card_did_render now takes that output as the first arg, and can
mutate it
- TemplateRenderContext now stores the original card, so it can return
a card even in the add screen case

The old mungeFields and mungeQA hook have been removed as part of this
change. mungeQA can be replaced with the card_did_render hook.
In the mungeFields case, please switch to using field_filter instead.
2020-01-24 13:44:13 +10:00
..
__init__.py move hook gen code out of anki/ 2020-01-15 09:11:20 +10:00
genhooks.py more changes to the template code 2020-01-24 13:44:13 +10:00
hookslib.py remove _hook/_filter suffix 2020-01-15 16:53:24 +10:00