Show HN: 23KB Template Language
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
Demo Sandbox: https://codesandbox.io/p/sandbox/basic-hmpl-example-dxlgfg