Hello everyone! In this article I would like to tell you about the start of the project, which I think may be of interest to you. The work on the c...
For further actions, you may consider blocking this person and/or reporting abuse
Neat
Hello! Ty!
It's really great knowing that there is some alternative to HTMX and Alpine.js. But I've few question in my mind regarding performance and security.
What specific optimizations does HMPL implement to ensure faster page loads compared to client-side frameworks? And how does it manage server load when rendering UI components server-side?
What security measures are in place to prevent common vulnerabilities such as XSS or CSRF in HMPL applications? How does it handles data validation and sanitization?
If the question regarding security is not that relevant then it's okay but I'm really curious about performance.
In terms of performance, there is a point in the documentation about memoization, this mechanism allows to significantly speed up interaction with the user interface, since the components will be taken from the cache. In terms of security, DOMParser is used by default in HMPL instead of innerHTML, and all script tags are removed when processing the UI. This allows for maximum, as far as possible, safe interaction with the server. In terms of the rest, since HMPL is completely customized, that is, almost everything depends on the programmer, unlike HTMX, then the issue of security lies more with the programmer himself.
What does it do better than HTMX ?
In short, just try to customize the request to the server or use AbortController and other innovations added to ecmascript. (spoiler) you are unlikely to succeed, or will not succeed at all, because XMLHTTPRequest in 2024 will not allow this
Hello! I wrote about this in detail on my old account, I need to duplicate it on the new one and add it to the blog. dev.to/antonmak1/hmpl-best-alterna...
Thanks, yes I see it:
"Why use HMPL and what are its advantages over HTMX?"
Nice one !
Ty!
Hi, I also made this,
npmjs.com/package/kwikjs
Maybe we can help each other.
Looks interesting, but Iβm not sure if it really beats something like Alpine.js for simplicity.
Yes, it's not a matter of simplicity anymore, but of customization.