Anki/anki/template
Damien Elmes 6ecfff56c5 add pytype inferred types to anki/
I've corrected some obvious issues, and we can fix others over time.
Mypy tests are currently broken, as adding the type hints has increased
mypy's testing surface.
2019-12-20 11:07:08 +10:00
..
__init__.py add pytype inferred types to anki/ 2019-12-20 11:07:08 +10:00
furigana.py add pytype inferred types to anki/ 2019-12-20 11:07:08 +10:00
hint.py add pytype inferred types to anki/ 2019-12-20 11:07:08 +10:00
LICENSE merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
README.anki merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
template.py add pytype inferred types to anki/ 2019-12-20 11:07:08 +10:00
view.py add pytype inferred types to anki/ 2019-12-20 11:07:08 +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