Lines Matching refs:str
24 def split_template_path(template: str) -> t.List[str]:
75 self, environment: "Environment", template: str
76 ) -> t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]:
100 def list_templates(self) -> t.List[str]:
110 name: str,
111 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,
180 searchpath: t.Union[str, os.PathLike, t.Sequence[t.Union[str, os.PathLike]]],
181 encoding: str = "utf-8",
184 if not isinstance(searchpath, abc.Iterable) or isinstance(searchpath, str):
192 self, environment: "Environment", template: str
193 ) -> t.Tuple[str, str, t.Callable[[], bool]]:
220 def list_templates(self) -> t.List[str]:
273 package_name: str,
274 package_path: "str" = "templates",
275 encoding: str = "utf-8",
305 roots: t.List[str] = []
331 self, environment: "Environment", template: str
332 ) -> t.Tuple[str, str, t.Optional[t.Callable[[], bool]]]:
368 def list_templates(self) -> t.List[str]:
369 results: t.List[str] = []
413 def __init__(self, mapping: t.Mapping[str, str]) -> None:
417 self, environment: "Environment", template: str
418 ) -> t.Tuple[str, None, t.Callable[[], bool]]:
424 def list_templates(self) -> t.List[str]:
449 [str],
452 str, t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]
460 self, environment: "Environment", template: str
461 ) -> t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]:
467 if isinstance(rv, str):
489 self, mapping: t.Mapping[str, BaseLoader], delimiter: str = "/"
494 def get_loader(self, template: str) -> t.Tuple[BaseLoader, str]:
503 self, environment: "Environment", template: str
504 ) -> t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]:
517 name: str,
518 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,
528 def list_templates(self) -> t.List[str]:
554 self, environment: "Environment", template: str
555 ) -> t.Tuple[str, t.Optional[str], t.Optional[t.Callable[[], bool]]]:
567 name: str,
568 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,
577 def list_templates(self) -> t.List[str]:
604 self, path: t.Union[str, os.PathLike, t.Sequence[t.Union[str, os.PathLike]]]
612 if not isinstance(path, abc.Iterable) or isinstance(path, str):
628 def get_template_key(name: str) -> str:
632 def get_module_filename(name: str) -> str:
639 name: str,
640 globals: t.Optional[t.MutableMapping[str, t.Any]] = None,