Proper use of HTMX |
The question requires a bit of reasoning.
How do I use templates in a standard request/response cycle? I generally understood how it works, but I can't figure out how to structure it correctly. I have reviewed the michalsn Demo HTMX example and forum-example. I don't like that classic CRUD pages are disappearing. In their place, only the HTMX fragment is returned. Can you suggest different ways to fix the situation? I understand that as a developer I have the right to apply any approach. I would like to know your opinion. What should I do if the user needs direct links like /books/edit/33? Or clicking on a link from different places: sidebar, profile, mail? Do I need to write alternative controllers like Controllers/Ajax/? How do I create templates for both classic and HTMX cases? |
Welcome Guest, Not a member yet? Register Sign In |