Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add push_url() #264

Merged
merged 6 commits into from
Sep 1, 2022
Merged

Add push_url() #264

merged 6 commits into from
Sep 1, 2022

Conversation

cjtapper
Copy link
Contributor

@cjtapper cjtapper commented Sep 1, 2022

Adds a helper function for setting the HX-Push-Url header.

Couldn't make up my mind about whether the url=False case would be better off as a separate function... Something like prevent_history_update(response). I figured it would probably be best to stick with something closer to the HTMX API. Any thoughts on this?

@adamchainz
Copy link
Owner

Okay, let's add it. I didn't so far since it's a one-liner, but sure providing a function can add some type safety. I think two one-liner functions would be excessive 😅.

@adamchainz adamchainz enabled auto-merge (squash) September 1, 2022 07:54
@adamchainz adamchainz merged commit 132c3c4 into adamchainz:main Sep 1, 2022
@limugob limugob mentioned this pull request Dec 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants