Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(728)

Side by Side Diff: mojo/public/third_party/jinja2/defaults.py

Issue 2250183003: Make the fuchsia mojo/public repo the source of truth. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « mojo/public/third_party/jinja2/debug.py ('k') | mojo/public/third_party/jinja2/environment.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # -*- coding: utf-8 -*-
2 """
3 jinja2.defaults
4 ~~~~~~~~~~~~~~~
5
6 Jinja default filters and tags.
7
8 :copyright: (c) 2010 by the Jinja Team.
9 :license: BSD, see LICENSE for more details.
10 """
11 from jinja2._compat import range_type
12 from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner
13
14
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
24 TRIM_BLOCKS = False
25 LSTRIP_BLOCKS = False
26 NEWLINE_SEQUENCE = '\n'
27 KEEP_TRAILING_NEWLINE = False
28
29
30 # default filters, tests and namespace
31 from jinja2.filters import FILTERS as DEFAULT_FILTERS
32 from jinja2.tests import TESTS as DEFAULT_TESTS
33 DEFAULT_NAMESPACE = {
34 'range': range_type,
35 'dict': lambda **kw: kw,
36 'lipsum': generate_lorem_ipsum,
37 'cycler': Cycler,
38 'joiner': Joiner
39 }
40
41
42 # export all constants
43 __all__ = tuple(x for x in locals().keys() if x.isupper())
OLDNEW
« no previous file with comments | « mojo/public/third_party/jinja2/debug.py ('k') | mojo/public/third_party/jinja2/environment.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698