1 # -*- coding: utf-8 -*-
6 Jinja default filters and tags.
8 :copyright: (c) 2010 by the Jinja Team.
9 :license: BSD, see LICENSE for more details.
11 from jinja2
._compat
import range_type
12 from jinja2
.utils
import generate_lorem_ipsum
, Cycler
, Joiner
15 # defaults for the parser / lexer
16 BLOCK_START_STRING
= '{%'
17 BLOCK_END_STRING
= '%}'
18 VARIABLE_START_STRING
= '{{'
19 VARIABLE_END_STRING
= '}}'
20 COMMENT_START_STRING
= '{#'
21 COMMENT_END_STRING
= '#}'
22 LINE_STATEMENT_PREFIX
= None
23 LINE_COMMENT_PREFIX
= None
26 NEWLINE_SEQUENCE
= '\n'
27 KEEP_TRAILING_NEWLINE
= False
30 # default filters, tests and namespace
31 from jinja2
.filters
import FILTERS
as DEFAULT_FILTERS
32 from jinja2
.tests
import TESTS
as DEFAULT_TESTS
35 'dict': lambda **kw
: kw
,
36 'lipsum': generate_lorem_ipsum
,
42 # export all constants
43 __all__
= tuple(x
for x
in locals().keys() if x
.isupper())