Show HN: HMPL – Small Template Language for Rendering UI from Server to Client
18 days ago
- #web-development
- #template-language
- #UI-rendering
- HMPL is a small template language for displaying UI from server to client.
- It uses customizable requests sent via fetch and processes them into HTML.
- Syntactically block-based and integrates with JSON5 and DOMPurify.
- Reduces JavaScript file sizes while displaying modern framework-like UI.
- Example provided shows dynamic UI updates via server requests.
- Can be used with or without JavaScript, supporting DOM mounting.
- Features include customizable requests, memory efficiency, and XSS protection.
- Installation options include npm, CDN, and starter projects like Vite.
- Documentation and community support available via GitHub, Discord, and Twitter.
- Open for contributions under MIT license.