1 个仓库
Using HTML attributes to declaratively map DOM elements to server endpoints for asynchronous requests.
Distinct from Attribute-Driven Request Composition: Shortlist candidates focus on SAML, C# attributes, or hash-to-attribute syntax; this is specifically about binding UI elements to server endpoints.
Explore 1 awesome GitHub repository matching web development · Attribute-Based Request Mapping. Refine with filters or upvote what's useful.
Intercooler-js 是一个声明式 AJAX 框架和服务器驱动的 UI 库。它作为一个超媒体 Web 框架,通过将特定的 DOM 元素替换为服务器返回的 HTML 片段,实现单页应用体验。 该库的特色在于使用 HTML 属性将 DOM 元素映射到服务器端点,从而无需手动编写脚本即可实现异步 HTTP 请求和 DOM 更新。它支持超媒体驱动的架构,即服务器通过响应头和交付带注解的 HTML 片段来控制客户端状态。 项目涵盖了广泛的功能,包括通过服务器发送事件 (SSE) 实现实时 UI 更新、浏览器历史记录与状态同步、自动内容轮询。此外,还提供资源依赖管理以协调相关 UI 元素间的更新、用于监控网络故障的远程错误日志记录,以及用于管理元素生命周期和 CSS 过渡的客户端 DOM 操作。
Binds DOM elements to server endpoints using HTML attributes to trigger asynchronous requests without writing JavaScript.