Path 1: 1 calls (1.0)

None (1)

Blueprint.app_template_global..decorator def (1)

1@setupmethod
2    def app_template_global(
3        self, name: str | None = None
4    ) -> t.Callable[[T_template_global], T_template_global]:
5        """Register a template global, available in any template rendered by the
6        application. Equivalent to :meth:`.Flask.template_global`.
7
8        .. versionadded:: 0.10
9
10        :param name: the optional name of the global, otherwise the
11                     function name will be used.
12        """
13
14        def decorator(f: T_template_global) -> T_template_global:
15            self.add_app_template_global(f, name=name)
16            return f
17
18        return decorator