Skip to content

Add HMPL #916

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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 20, 2025
Merged

Add HMPL #916

merged 2 commits into from
Feb 20, 2025

Conversation

aanthonymax
Copy link
Contributor

@aanthonymax aanthonymax commented Feb 19, 2025

Checklist:

  • I've read and understood Contributing Guidelines.
  • I've added the new resource at the end of its section.
  • This resource is out there for a while, and actively maintained.
  • This resource is popular enough and has at least a few hundred stars on GitHub.

This patch adds HMPL, a small template language for displaying UI from server to client. It is based on customizable requests sent to the server via fetch and processed into ready-made HTML.

@gokaygurcan
Copy link
Collaborator

Hi @aanthonymax,

Can you please elaborate? I see a 3-month old project with ~150 stars. How do you see it from your end?

@aanthonymax
Copy link
Contributor Author

@gokaygurcan I see it as a very promising template language that can reduce the bundle size of the original web applications. By moving the generation of some HTML components to the server, you can easily connect them in the markup via the "request object". This project is similar to Alpine.js and HTMX, but in my opinion, it combined the best of the two. It seems to me that it was possible to make a golden mean between HTML and JavaScript, since I do not like that in the case of HTMX we almost completely abandon js, thereby having minimal customization of the request, and in Alpine.js we get just syntax when we write fetch().then..... right in the markup, which also looks wild.

Therefore, I think it would be cool to show it to as many people as possible.

@aanthonymax
Copy link
Contributor Author

@gokaygurcan If you mean how long it took to make, then development has been going on since last summer. I changed the account, but made a fatal mistake by not simply changing the maintainer in the repository, but deleting it. I had to transfer everything to a new account. You can see the version history in npm. Also, I wrote here:

hmpl-language/hmpl#2
MunGell/awesome-for-beginners#1507

@gokaygurcan
Copy link
Collaborator

Interesting. Sorry to hear that the history couldn't be saved. And thanks a lot for the explanation. It makes more sense now and I agree that if it bridges the gap you mention, it's better to be seen by people than sitting alone.

@gokaygurcan gokaygurcan merged commit 451932a into sorrycc:master Feb 20, 2025
1 check passed
@aanthonymax
Copy link
Contributor Author

@gokaygurcan Thank you very much! We will try to do better and make the most useful project for people as much as we can!

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

Successfully merging this pull request may close these issues.

2 participants