Repository navigation
v0.1.0 — Initial Release
xhtmlx v0.1.0
First release. Declarative HTML attributes for REST API driven UIs — like htmx, but your server returns JSON and xhtmlx renders client-side.
Features
- REST verbs:
xh-get,xh-post,xh-put,xh-delete,xh-patch - Templates: external files (
xh-template) with caching, inline<template>fallback - Data binding:
xh-text,xh-html,xh-attr-* - Iteration:
xh-eachwith$index,$parent,$root - Conditionals:
xh-if,xh-unless - Triggers:
click,load,every Ns,revealed,delay,throttle,once,changed,from:selector - Targeting:
xh-target,xh-swap(8 modes) - Error handling:
xh-error-template, per-status-code templates,xh-error-boundary, global config - Indicators:
xh-indicator - URL interpolation:
{{field}} - Custom DOM events:
xh:beforeRequest,xh:afterRequest,xh:beforeSwap,xh:afterSwap,xh:responseError - MutationObserver for dynamically added elements
Stats
- Zero dependencies
- ~5KB gzipped
- 404 tests