# flask 3.1.3 (BSD-3-Clause), harvested by tools/harvest_corpus.py
=== input
A decorator that is used to register a custom template global function.
        You can specify a name for the global function, otherwise the function
        name will be used. Example::

            @app.template_global()
            def double(n):
                return 2 * n

        .. versionadded:: 0.10

        :param name: the optional name of the global function, otherwise the
                     function name will be used.
        
=== parse rest
short_description: |
  A decorator that is used to register a custom template global function.
  You can specify a name for the global function, otherwise the function
  name will be used. Example::
long_description: |
      @app.template_global()
      def double(n):
          return 2 * n
  
  .. versionadded:: 0.10
blank_after_short_description: True
blank_after_long_description: True
style: rest
- DocstringParam
  description: |
    the optional name of the global function, otherwise the
    function name will be used.
  kind: param
  key: 'param'
  arg_name: 'name'
  is_optional: False
=== detect
rest
=== compose rest
A decorator that is used to register a custom template global function.
You can specify a name for the global function, otherwise the function
name will be used. Example::

    @app.template_global()
    def double(n):
        return 2 * n

.. versionadded:: 0.10

:param name: the optional name of the global function, otherwise the
    function name will be used.
