Lines Matching refs:loaders
15 from jinja2 import loaders
18 from jinja2.loaders import split_template_path
69 class TestLoader(loaders.BaseLoader):
82 env = Environment(loader=loaders.DictLoader(mapping), cache_size=0)
87 loader = loaders.DictLoader(mapping)
100 loader1 = loaders.DictLoader({"foo": "one"})
101 loader2 = loaders.DictLoader({"foo": "two"})
109 env = Environment(loader=loaders.DictLoader(mapping))
134 filesystem_loader = loaders.FileSystemLoader(self.searchpath)
143 filesystem_loader = loaders.FileSystemLoader(searchpath)
151 filesystem_loader = loaders.FileSystemLoader(["/tmp/templates", searchpath])
156 filesystem_loader = loaders.FileSystemLoader(self.searchpath)
175 loader = loaders.FileSystemLoader(self.searchpath, encoding=encoding)
193 self.mod_env = Environment(loader=loaders.ModuleLoader(self.archive))
240 key = loaders.ModuleLoader.get_template_key("a/test.html")
260 self.mod_env.loader = loaders.ChoiceLoader(
261 [self.mod_env.loader, loaders.DictLoader({"DICT_SOURCE": "DICT_TEMPLATE"})]
270 self.mod_env.loader = loaders.PrefixLoader(
273 "DICT": loaders.DictLoader({"test.html": "DICT_TEMPLATE"}),
288 mod_loader = loaders.ModuleLoader(pathlib.Path(mod_path))
300 mod_loader = loaders.ModuleLoader([pathlib.Path(mod_path), "/tmp/templates"])