Every backend framework creator does get a excited while seeing how sexy HTMX is, as a creator of injee, I am no different. I have been thinking about how to make injee work with HTMX.
JavaScript frameworks are good to people only who know JavaScript, but for a person who knows programming they suck. So its natural that any backend creator does want to support HTMX.
There are my ideas for Injex = Injee + HTMX.
Views in injee are just normal text file, say you want to display a content about user, then in the place where injee runs, define a file called /views/users/display.html
, now say that file has the following content:
Now when you call /views/:table/:view
, that is http://localhost:4125/views/users/CRDT-Y7-HQ/display.html
, then, the user ones values:
Then the returned HTML would be:
One can call views for all records using URL like this: http://localhost:4125/views/users/all/display.html
. In this special case, one can paginate, search and so on.
Of course you might need some views to be returned when you CRUD, right now I am not sure how to do it. But if I get the idea, I will write about it.