3 ms·
This is exactly why I always recommend that htmx is best used not with a traditional templating engine, but with an HTML generation library embedded directly in
by yawaramin 2y ago
This is exactly why I always recommend that htmx is best used not with a traditional templating engine, but with an HTML generation library embedded directly in your favourite programming language. Eg if you use Python there is https://htpy.dev/ https://htpy.dev/ - and many others in other languages.
What these all do is they allow using the full power of your programming language to create component-like abstractions much like you would in React. I show an example of this with my own library: https://github.com/yawaramin/dream-html/tree/todoapp/app https://github.com/yawaramin/dream-html/tree/todoapp/app