Home
last modified time | relevance | path

Searched refs:jinja2 (Results 1 – 25 of 32) sorted by relevance

12

/external/chromium-trace/catapult/third_party/webapp2/webapp2_extras/
Djinja2.py15 import jinja2
117 kwargs['loader'] = jinja2.ModuleLoader(compiled_path)
120 kwargs['loader'] = jinja2.FileSystemLoader(template_path)
123 env = jinja2.Environment(**kwargs)
210 jinja2 = app.registry.get(key)
211 if not jinja2:
212 jinja2 = app.registry[key] = factory(app)
214 return jinja2
217 def set_jinja2(jinja2, key=_registry_key, app=None): argument
230 app.registry[key] = jinja2
/external/chromium-trace/catapult/third_party/webapp2/tests/
Dextras_jinja2_test.py5 from webapp2_extras import jinja2
31 j = jinja2.Jinja2(app)
47 j = jinja2.Jinja2(app)
63 j = jinja2.Jinja2(app)
75 j = jinja2.Jinja2(app)
82 jinja2.set_jinja2(jinja2.Jinja2(app), app=app)
84 j = jinja2.get_jinja2(app=app)
85 self.assertTrue(isinstance(j, jinja2.Jinja2))
90 j = jinja2.get_jinja2(app=app)
92 self.assertTrue(isinstance(j, jinja2.Jinja2))
/external/opencv3/3rdparty/jinja2/
D__init__.py33 from jinja2.environment import Environment, Template
36 from jinja2.loaders import BaseLoader, FileSystemLoader, PackageLoader, \
41 from jinja2.bccache import BytecodeCache, FileSystemBytecodeCache, \
45 from jinja2.runtime import Undefined, DebugUndefined, StrictUndefined
48 from jinja2.exceptions import TemplateError, UndefinedError, \
53 from jinja2.filters import environmentfilter, contextfilter, \
55 from jinja2.utils import Markup, escape, clear_caches, \
Ddefaults.py11 from jinja2._compat import range_type
12 from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner
31 from jinja2.filters import FILTERS as DEFAULT_FILTERS
32 from jinja2.tests import TESTS as DEFAULT_TESTS
Dmeta.py12 from jinja2 import nodes
13 from jinja2.compiler import CodeGenerator
14 from jinja2._compat import string_types
Doptimizer.py19 from jinja2 import nodes
20 from jinja2.visitor import NodeTransformer
Dtests.py12 from jinja2.runtime import Undefined
13 from jinja2._compat import text_type, string_types, mapping_types
Ddebug.py16 from jinja2.utils import missing, internal_code
17 from jinja2.exceptions import TemplateSyntaxError
18 from jinja2._compat import iteritems, reraise, code_type
105 from jinja2.debugrenderer import render_traceback
Dutils.py14 from jinja2._compat import text_type, string_types, implements_iterator, \
97 from jinja2.runtime import Undefined
113 from jinja2.environment import _spontaneous_environments
114 from jinja2.lexer import _lexer_cache
232 from jinja2.constants import LOREM_IPSUM_WORDS
Dext.py13 from jinja2 import nodes
14 from jinja2.defaults import BLOCK_START_STRING, \
19 from jinja2.environment import Environment
20 from jinja2.runtime import concat
21 from jinja2.exceptions import TemplateAssertionError, TemplateSyntaxError
22 from jinja2.utils import contextfunction, import_string, Markup
23 from jinja2._compat import next, with_metaclass, string_types, iteritems
Dsandbox.py16 from jinja2.environment import Environment
17 from jinja2.exceptions import SecurityError
18 from jinja2._compat import string_types, function_type, method_type, \
Dloaders.py17 from jinja2.exceptions import TemplateNotFound
18 from jinja2.utils import open_if_exists, internalcode
19 from jinja2._compat import string_types, iteritems
Druntime.py12 from jinja2.nodes import EvalContext, _context_function_types
13 from jinja2.utils import Markup, soft_unicode, escape, missing, concat, \
15 from jinja2.exceptions import UndefinedError, TemplateRuntimeError, \
17 from jinja2._compat import next, imap, text_type, iteritems, \
Dbccache.py23 from jinja2.utils import open_if_exists
24 from jinja2._compat import BytesIO, pickle, PY2, text_type
Dfilters.py17 from jinja2.utils import Markup, escape, pformat, urlize, soft_unicode, \
19 from jinja2.runtime import Undefined
20 from jinja2.exceptions import FilterArgumentError
21 from jinja2._compat import next, imap, string_types, text_type, iteritems
Dlexer.py21 from jinja2.exceptions import TemplateSyntaxError
22 from jinja2.utils import LRUCache
23 from jinja2._compat import next, iteritems, implements_iterator, text_type, \
44 from jinja2 import _stringdefs
Dvisitor.py11 from jinja2.nodes import Node
D_stringdefs.py16 from jinja2._compat import unichr
/external/chromium-trace/catapult/third_party/webapp2/docs/api/webapp2_extras/
Djinja2.rst1 .. _api.webapp2_extras.jinja2:
5 .. module:: webapp2_extras.jinja2
9 To use it, you must add the ``jinja2`` package to your application
13 You can download ``jinja2`` from PyPi:
/external/chromium-trace/catapult/firefighter/default/common/
Djinja.py7 import jinja2
14 ENVIRONMENT = jinja2.Environment(loader=jinja2.FileSystemLoader(_TEMPLATES_DIR))
/external/chromium-trace/catapult/third_party/webapp2/docs/
Dtodo.rst28 - jinja2 & mako
68 from webapp2_extras import jinja2
71 j = jinja2.Jinja2(app)
81 j = jinja2.get_jinja2(factory=jinja2_factory)
85 http://stackoverflow.com/questions/3086091/debug-jinja2-in-google-app-engine/3694434#3694434
95 a nested dict. So, e.g., i18n, jinja2 and sessions are configured like this::
101 config['webapp2_extras.jinja2'] = {
/external/chromium-trace/catapult/dashboard/dashboard/
Drequest_handler.py10 import jinja2
18 JINJA2_ENVIRONMENT = jinja2.Environment(
19 loader=jinja2.FileSystemLoader(
/external/chromium-trace/catapult/third_party/webapp2/docs/api/
Dextras.jinja2.rst3 This page moved to :ref:`api.webapp2_extras.jinja2`.
/external/chromium-trace/catapult/third_party/webapp2/webapp2.egg-info/
DSOURCES.txt29 docs/api/extras.jinja2.rst
46 docs/api/webapp2_extras/jinja2.rst
129 webapp2_extras/jinja2.py
/external/chromium-trace/catapult/third_party/webapp2/tests/resources/jinja2_templates_compiled/
Dtmpl_3a79873b1b49be244fd5444b1258ce348be26de8.py2 from jinja2.runtime import LoopContext, TemplateReference, Macro, Markup, TemplateRuntimeError, mis…

12