File: markup_template.py

package info (click to toggle)
python-kajiki 1.0.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 700 kB
  • sloc: python: 4,098; makefile: 115
file content (15 lines) | stat: -rw-r--r-- 372 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
DIRECTIVES = [
    ("def", "function"),
    ("call", "function"),
    ("case", ("value", "match")),
    ("else", ""),
    ("for", "each"),
    ("if", "test"),
    ("switch", "test"),
    ("with", "vars"),
    ("replace", "value"),
    ("block", "name"),
    ("extends", "href"),
]
QDIRECTIVES = [(f"py:{k}", v) for k, v in DIRECTIVES]
QDIRECTIVES_DICT = dict(QDIRECTIVES)