diff --git a/flask_htmx/htmx.py b/flask_htmx/htmx.py index 8907ea2..882e9b1 100644 --- a/flask_htmx/htmx.py +++ b/flask_htmx/htmx.py @@ -25,6 +25,10 @@ def init_app(self, app: Flask): """Initialise the extension with the Flask app object.""" app.htmx = self + @app.context_processor + def htmx_context_processor(): + return {'htmx': self} + @property def boosted(self) -> bool: """:py:obj:`True` if the request came from an element with the `hx-boost`