antonmak1's comments

antonmak1 | 1 year ago | on: Show HN: HMPL – Server-oriented customizable templating for JavaScript

Hello everyone! With this comment, as a starting point, I would like to mark a new stage in the development of the product and show the whole Product Hunt, and the world in general, what we have done in the last 6 months of work! Working like ants, efforts were made on a product that made it easier to work with the server and clients on the web.

It is a open-source template language that extends the capabilities of HTML. The main tasks that it solves are:

- Creating web applications with the same interface as if they were written on modern frameworks, but with a significantly smaller bundle size, which will allow you to load sites faster.

- Building a server-oriented application structure that is almost independent of the client. This will allow you to share components across multiple sites without using the Microfrontend methodology and generally not depend on files on the server (in repositories, for example).

- Unlike similar ones, this module is easily integrated into other web applications, and also has extensive customization, which will allow you to send requests to the server not pre-prepared by the module, but completely custom, with the use of fetch!

The essence of the module is simplicity. It combines different approaches to working with the server and provides a kind of middle ground when you are working with either javascript or HTML markup. This principle allows you to combine code with other architectures without building your own completely on it. It can be implemented both in the Vue application and in Angular, Wordpress, self-written sites and much more!

Examples: https://hmpl-lang.dev/examples.html

Demo Sandbox: https://codesandbox.io/p/sandbox/basic-hmpl-example-dxlgfg

Like an ant. Small, but hardworking!

------------ ------------ ---------------

antonmak1 | 1 year ago | on: HMPL – template language for displaying UI from server to client

Thank you very much for your feedback! In short, it's about theories like SPA, SSR and others. There are different approaches to creating web applications with their pros and cons. This template language is simply an implementation of one of these ideas. You can make websites using PHP (working with WP and other similar things), and through frameworks that use SSR as a basis and others.

antonmak1 | 1 year ago | on: HMPL – template language for displaying UI from server to client

Thank you very much for your feedback! This is a template language oriented primarily to work via JavaScript. It does not functionally interact with the real DOM in any way. You create separate objects with nodes. Also, the syntax is based on passing objects "to HTML", while HTMX works via attributes. I have long wanted to make a full-fledged article on this topic, but I never got around to it. I am already tired of just writing the same thing over and over again.

antonmak1 | 1 year ago | on: HMPL – template language for displaying UI from server to client

Thank you very much for your feedback! This idea has been discussed and used in web development for quite some time now. I am certainly not inventing anything new, but I think the idea of combining the template language approach and server requests to get a UI looks interesting.
page 1