Skip to content

Commit

Permalink
Merge branch 'main' into patch-1
Browse files Browse the repository at this point in the history
  • Loading branch information
edmondchuc authored Jul 26, 2024
2 parents ac501e8 + 712eb88 commit 93855a7
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions flask_htmx/htmx.py
Original file line number Diff line number Diff line change
Expand Up @@ -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`
Expand Down

0 comments on commit 93855a7

Please sign in to comment.