Anki/anki/template
Damien Elmes f6f9b767c0 remove loop part of templating code
str has __iter__ on python3 which breaks templates
2016-05-13 14:33:32 +10:00
..
__init__.py merged libanki and ankiqt into single distro 2012-12-21 16:51:59 +09:00
furigana.py handle nbsp in furigana (#327) 2013-04-11 14:45:53 +09:00
hint.py optimize imports 2012-12-22 09:17:10 +09: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 remove loop part of templating code 2016-05-13 14:33:32 +10:00
view.py start port to python 3 2016-05-12 14:45:35 +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