Home
last modified time | relevance | path

Searched refs:get_template (Results 1 – 25 of 26) sorted by relevance

12

/external/python/jinja/tests/
Dtest_loader.py24 tmpl = env.get_template("justdict.html")
26 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
30 tmpl = env.get_template("test.html")
32 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
40 e.get_template("foo")
42 e.get_template("foo/test.html")
46 tmpl = env.get_template("justdict.html")
48 tmpl = env.get_template("test.html")
50 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
54 tmpl = env.get_template("justfunction.html")
[all …]
Dtest_inheritance.py78 tmpl = env.get_template("layout")
84 tmpl = env.get_template("level1")
90 tmpl = env.get_template("level2")
97 tmpl = env.get_template("level3")
103 tmpl = env.get_template("level4")
122 tmpl = env.get_template("c")
126 env.get_template("working")
144 tmpl = env.get_template("b")
157 tmpl = env.get_template("child")
172 tmpl = env.get_template("child")
[all …]
Dtest_ext.py264 tmpl = i18n_env.get_template("child.html")
268 tmpl = i18n_env.get_template("plural.html")
273 tmpl = i18n_env.get_template("plural2.html")
296 tmpl = i18n_env.get_template("stringformat.html")
439 tmpl = newstyle_i18n_env.get_template("child.html")
443 tmpl = newstyle_i18n_env.get_template("plural.html")
460 tmpl = newstyle_i18n_env.get_template("stringformat.html")
464 tmpl = newstyle_i18n_env.get_template("ngettext.html")
491 tmpl = newstyle_i18n_env.get_template("ngettext_long.html")
512 t1 = newstyle_i18n_env.get_template("transvars1.html")
[all …]
Dtest_debug.py34 tmpl = fs_env.get_template("broken.html")
51 lambda: fs_env.get_template("syntaxerror.html"),
89 t = e.get_template("inc")
113 tmpl = fs_env.get_template("test.html")
Dtest_regression.py287 env.get_template("foo/bar.html")
405 a = env.get_template("a.html")
406 b = env.get_template("b.html")
407 c = env.get_template("c.html")
423 t = env.get_template("child.html")
553 assert env.get_template("main").render() == "foobar"
564 assert env.get_template("main").render() == "123"
586 assert env.get_template("test").render(foobar="test") == "test"
Dtest_imports.py111 tmpl = env.get_template("test", globals={"foo": "bar"})
114 tmpl = env.get_template("test1")
127 tmpl = env.get_template("test", globals={"foo": "bar"})
139 tmpl = env.get_template("test", globals={"foo": "bar"})
200 assert env.get_template("main").render() == "123"
Dtest_bytecode_cache.py18 tmpl = env.get_template("test.html")
20 pytest.raises(TemplateNotFound, env.get_template, "missing.html")
Dtest_api.py107 assert env.get_template(t) is t
120 env.get_template(t)
145 t = env.get_template("test.txt")
147 t = env.get_template("test.html")
Dtest_async.py243 assert env.get_template("main").render() == "123"
/external/python/google-api-python-client/samples/appengine/
Dmain.py85 template = JINJA_ENVIRONMENT.get_template('grant.html')
98 template = JINJA_ENVIRONMENT.get_template('welcome.html')
/external/wayland/doc/doxygen/
Dgen-doxygen.py37 def get_template(outformat): function
43 for l in get_template(outformat):
/external/antlr/runtime/Perl5/lib/ANTLR/Runtime/
DRuleReturnScope.pm17 sub get_template { subroutine
/external/python/jinja/examples/basic/
Dinheritance.py13 print(env.get_template("c").render())
Dtest.py28 tmpl = env.get_template("child.html")
Ddebugger.py5 tmpl = env.get_template("broken.html")
/external/mesa3d/.gitlab-ci/
Dgenerate_lava.py28 template = env.get_template(os.path.basename(args.template))
/external/libchrome/mojo/public/tools/bindings/pylib/mojom/generate/
Dtemplate_expander.py29 template = jinja_env.get_template(path_to_template)
/external/webrtc/tools_webrtc/android/
Drelease_aar.py132 template = env.get_template('pom.jinja')
153 maven_repository_template = env.get_template('maven-repository.jinja')
/external/autotest/frontend/afe/
Dviews.py85 t = loader.get_template('500.html')
/external/rust/crates/grpcio-sys/grpc/tools/distrib/python/grpc_prefixed/
Dgenerate.py75 template = env.get_template(template_name)
/external/icu/tools/icu4c_srcgen/
Dgenutil.py46 return JINJA_ENV.get_template(template_file).render(data)
56 return JINJA_ENV.get_template(template_file).render(data)
/external/libchrome/third_party/jinja2/
Denvironment.py810 def get_template(self, name, parent=None, globals=None): member in Environment
869 return self.get_template(template_name_or_list, parent, globals)
/external/python/jinja/src/jinja2/
Denvironment.py818 def get_template(self, name, parent=None, globals=None): member in Environment
885 return self.get_template(template_name_or_list, parent, globals)
/external/python/jinja/docs/
Dapi.rst50 To load a template from this environment, call the :meth:`get_template`
55 template = env.get_template("mytemplate.html")
83 :members: from_string, get_template, select_template,
/external/mesa3d/src/compiler/glsl/
Dir_expression_operation.py363 def get_template(self): member in operation

12