Environment
Works like a regular Jinja environment but has some additional knowledge of how Flask's blueprint works so that it can prepend the name of the blueprint to referenced templates if necessary.
Constructor
Signature
def Environment(
app: [App](../sansio/app/app.md?sid=flask_sansio_app_app),
options: t.Any
) - > None
Parameters
| Name | Type | Description |
|---|---|---|
| app | [App](../sansio/app/app.md?sid=flask_sansio_app_app) | The Flask application instance. |
| options | t.Any | Additional keyword arguments passed to the BaseEnvironment constructor. |
Signature
def Environment(
app: [App](../sansio/app/app.md?sid=flask_sansio_app_app),
options: t.Any
) - > None
Parameters
| Name | Type | Description |
|---|---|---|
| app | [App](../sansio/app/app.md?sid=flask_sansio_app_app) | The Flask application instance to associate with this environment. This is used to create a global Jinja loader if one is not explicitly provided. |
| options | t.Any | Additional keyword arguments to pass to the base Jinja2 Environment constructor. These options configure the behavior of the Jinja environment, such as template loading, caching, and extensions. |