Anki/pylib/anki/template
Damien Elmes f7ff0d1c17 flatten->render; pass field content in
This is paving the way to move the standard filters into Rust.

Non-empty fields are now determined in Rust, using a single regex
instead of the overkill stripHTMLMedia(). The old implementation
has been moved into the Pystache code for now.
2020-01-10 14:59:29 +10:00
..
__init__.py move furigana/hint filters into template2 2020-01-08 12:30:08 +10:00
LICENSE tweaking the folder names again 2020-01-03 07:48:38 +10:00
README.anki tweaking the folder names again 2020-01-03 07:48:38 +10:00
template.py flatten->render; pass field content in 2020-01-10 14:59:29 +10:00
view.py tweaking the folder names again 2020-01-03 07:48:38 +10:00

Anki uses a modified version of Pystache to provide Mustache-like syntax.
Behaviour is a little different from standard Mustache:

- {{text}} returns text verbatim with no HTML escaping
- {{{text}}} does the same and exists for backwards compatibility
- partial rendering is disabled for security reasons
- certain keywords like 'cloze' are treated specially