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

htmx decorator #147

Closed
rtpm opened this issue Nov 5, 2021 · 1 comment
Closed

htmx decorator #147

rtpm opened this issue Nov 5, 2021 · 1 comment

Comments

@rtpm
Copy link

rtpm commented Nov 5, 2021

Description

Hello, maybe you could add a htmx decorator which renders different template if using TemplateResponse in the view ?

Here's an example, from Luke's repo:
https://gitlab.com/learnscripture/learnscripture.net/-/blob/master/learnscripture/decorators.py#L80

Thanks!

@adamchainz
Copy link
Owner

There are many approaches to partial rendering. I don't want to encode just one of them in a decorator or CBV. I want to keep this library restricted to htmx-level stuff that you can build your own helpers out of if you wish.

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

No branches or pull requests

2 participants