-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathconfig.py
More file actions
33 lines (26 loc) · 868 Bytes
/
Copy pathconfig.py
File metadata and controls
33 lines (26 loc) · 868 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
# --------------------------------------------------------------------------
# User configuration settings.
# --------------------------------------------------------------------------
import datetime
# Assign a template-loading callable here to enable the {% include %}
# and {% extends %} tags. The callable should accept one or more string
# arguments and either return an instance of the Template class or raise
# a TemplateNotFound exception.
loader = None
# Token delimiters.
delimiters = {
'print_start': '{{',
'print_end': '}}',
'eprint_start': '{{{',
'eprint_end': '}}}',
'syntax_start': '{%',
'syntax_end': '%}',
'comment_start': '{#',
'comment_end': '#}',
}
# Builtin functions and variables available in all contexts.
builtins = {
'delimiters': delimiters,
'now': datetime.datetime.now,
'range': range,
}