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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

HTML Middleware #1011

Open
apps-caraga opened this issue Jan 20, 2024 · 2 comments
Open

HTML Middleware #1011

apps-caraga opened this issue Jan 20, 2024 · 2 comments
Assignees

Comments

@apps-caraga
Copy link
Contributor

Not an issue, just a question. Can be closed immediately if considered irrelevant. 馃榿

I'm just been reading about htmx, how it supposedly simplifies things in webdev. I was just wondering if this API can also be used with htmx? Like, htmx needs a full or partial html document from the server, so would it be possible to have a middleware that produces that (html) instead of json or xml?

@mevdschee mevdschee self-assigned this Jan 20, 2024
@mevdschee
Copy link
Owner

Awesome idea! It would need some examples I guess and a default representation (table for lists and dt/dd for records)?

@apps-caraga
Copy link
Contributor Author

Yep, a default representation of tabular data would be useful. Although from what I read so far from its docs, almost any valid html tag/document can be returned, so that may complicate things up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants