Skip to content
Myr

Changes and docs are modified.

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

authored by Alexander Pantyukhin · committed by Markus Unterwaditzer · parent 5e12748 · Browse files · 2 files+18 added−0 removed
This commit

State

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

Diff stats

2 files+18 added−0 removed

  • other:+18 added−0 removed

2 files+18 added−0 removed

modified:docs/api.rst+17 added
536 unmodified lines
537538 from flask import template_rendered539 template_rendered.connect(log_template_renders, app)540541.. data:: flask.before_render_template542 :noindex:543544 This signal is sent before template rendering process. The545 signal is invoked with the instance of the template as `template`546 and the context as dictionary (named `context`).547548 Example subscriber::549550 def log_template_renders(sender, template, context, **extra):551 sender.logger.debug('Rendering template "%s" with context %s',552 template.name or 'string template',553 context)554555 from flask import before_render_template556 before_render_template.connect(log_template_renders, app)557558.. data:: request_started559560 This signal is sent when the request context is set up, before561 any request processing happens. Because the request context is already
338 unmodified lines
modified:CHANGES+1 added
6 unmodified lines
7-----------89(release date to be announced, codename to be selected)1011- Added before_render_template signal.12- Added `**kwargs` to :meth:`flask.Test.test_client` to support passing13 additional keyword arguments to the constructor of14 :attr:`flask.Flask.test_client_class`.15- Added ``SESSION_REFRESH_EACH_REQUEST`` config key that controls the
536 unmodified lines