Skip to content
Myr

Fixed some rst markup problems

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by Armin Ronacher · committed by Armin Ronacher · parent 833198c · Browse files · 1 file+5 added−5 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+5 added−5 removed

  • other:+5 added−5 removed

1 file+5 added−5 removed

modified:flask/app.py+5 added-5 removed
1169 unmodified lines
1170 """A decorator that is used to register a custom template global function.1171 You can specify a name for the global function, otherwise the function1172 name will be used. Example::11731174 @app.template_global()1175 def double(n):1176 return 2 * n1174 @app.template_global()1175 def double(n):1176 return 2 * n11771178 .. versionadded:: 0.1011791180 :param name: the optional name of the global function, otherwise the1181 function name will be used.1181 function name will be used.1182 """1183 def decorator(f):1184 self.add_template_global(f, name=name)1185 return f
6 unmodified lines
11921193 .. versionadded:: 0.1011941195 :param name: the optional name of the global function, otherwise the1196 function name will be used.1196 function name will be used.1197 """1198 self.jinja_env.globals[name or f.__name__] = f11991200 @setupmethod
629 unmodified lines