hmpl is 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. The language is syntactically object-based and integrated with JSON5. Reduce the size of your javascript files and display the same UI as if it was written in a modern framework. Using HMPL, you can multiply reduce the size of the application bundle. Full customization of the request based on the modern fetch standard, as well as support for all the functionality necessary for modern work in applications (request indicator, sending by event, automatic generation of body for the form, caching) and the syntax of the object in the markup, which requires a minimum number of characters, will help to build interaction with the server and client as efficiently as possible.

Features

  • Customizable: Send a custom request to the server when receiving the UI
  • Memory Preserving: Reduce file sizes on the client by several times
  • Based on Fetch API: Use a modern standard instead of XMLHTTPRequest
  • Server-oriented: Work with the server directly through markup and with a little js
  • Generate thousands of DOM nodes from a single template: Work with large components not only on the server but also on the client
  • Simple: Get ready-made UI from the server by writing a couple of lines of familiar object syntax

Project Samples

Project Activity

See All Activity >

License

MIT License

Follow hmpl

hmpl Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of hmpl!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

TypeScript

Related Categories

TypeScript User Interface (UI) Software

Registered

2024-12-11