Method: flask.blueprints.Blueprint.app_context_processor
Calls: 1, Exceptions: 0, Paths: 1Back
Path 1: 1 calls (1.0)
test_context_processing.
test_context_processing.
1@setupmethod
2 def app_context_processor(
3 self, f: T_template_context_processor
4 ) -> T_template_context_processor:
5 """Like :meth:`context_processor`, but for templates rendered by every view, not
6 only by the blueprint. Equivalent to :meth:`.Flask.context_processor`.
7 """
8 self.record_once(
9 lambda s: s.app.template_context_processors.setdefault(None, []).append(f)
10 )
11 return f