LogoThread Easy
  • Explorer
  • Composer un thread
LogoThread Easy

Votre partenaire tout-en-un pour les threads Twitter

© 2025 Thread Easy All Rights Reserved.

Explorer

Newest first — browse tweet threads

Keep on to blur preview images; turn off to show them clearly

RT @AnnaLeptikon: “Am I single … ?
Maybe!
But also technically I am stored on a server in Iowa.”

I laughed. Then I realized I am also stor…

RT @AnnaLeptikon: “Am I single … ? Maybe! But also technically I am stored on a server in Iowa.” I laughed. Then I realized I am also stor…

Author. Coder. CTO. θηριομάχης. Building: https://t.co/otXT4Wy6WR. Writing: https://t.co/dBPBtyCIHw.

avatar for Jon Stokes
Jon Stokes
Sat Nov 29 13:55:06
[开源推荐] HMPL: 极简的服务端驱动模板语言,比 React 更轻、比传统 jQuery 更现代、类似 HTMX 但更具模板化控制力。

核心目标非常明确:在保持现代 Web 应用动态交互体验的同时,极大地减少客户端 JavaScript 的代码量和复杂性,可以把它理解为 HTMX 和 EJS 之间的某种“中间形态”——它既拥有传统模板引擎的直观,又具备现代“服务端驱动 UI”的能力。

💡 核心理念:在 HTML 中定义“请求”
HMPL 最大的创新在于它的语法逻辑。传统的做法是“写 JS 发请求 -> 拿到数据 -> 更新 DOM”,而 HMPL 允许你直接在 HTML 模板中声明“这个区块的数据来自哪里”。

· 所见即所得的数据流:你不需要编写冗长的 fetch 或 axios 代码,只需在模板中使用特定的语法(如 {{ src: "/api/component" }}),HMPL 就会自动处理请求、获取服务端返回的 HTML 片段,并安全地渲染到页面上。
· 服务端为中心:它推崇将逻辑放回服务端,客户端只负责“按需获取和展示”。这使得它天然支持类似 SSR 的效果,但没有复杂的框架负担。

✨ 关键特性解读
1. 极致轻量 (Lightweight)
在现代前端框架(如 React, Vue)动辄几十 KB 甚至更大的背景下,HMPL 的核心非常小巧(gzip 后约 24KB 甚至更小),极其适合对首屏加载速度和性能有高要求的项目。

2. 安全性内置 (Security First)
直接渲染服务端 HTML 最怕 XSS 攻击。HMPL 聪明地集成了 DOMPurify,默认对渲染内容进行清洗和消毒,解决了开发者最担心的安全隐患。

3. 极佳的开发者体验 (DX)
尽管是小众语言,但它提供了完善的配套工具,包括 VS Code 插件、Vite 插件和 Webpack Loader。这意味着你编写 HMPL 时也能享受到语法高亮、自动补全等现代开发体验。

4. 灵活性 (Flexibility)
它不是要取代整个框架。你可以把它作为一个独立工具使用,也可以将其嵌入到现有的 Vue 或 React 项目中,专门处理某些需要动态加载的服务端内容。

⚖️ 行业价值与评价
在当前的前端领域,HMPL 的出现反映了一种反思:

· 拒绝过度工程化:我们真的需要为每一个简单的动态页面都引入庞大的 SPA 框架吗?HMPL 给出了否定的答案。
· 更低的学习门槛:对于后端开发者或全栈开发者来说,HMPL 这种“写模板 = 写逻辑”的方式,比学习整套 React Hooks 或 Vue Lifecycle 要直观得多。

开源地址:

[开源推荐] HMPL: 极简的服务端驱动模板语言,比 React 更轻、比传统 jQuery 更现代、类似 HTMX 但更具模板化控制力。 核心目标非常明确:在保持现代 Web 应用动态交互体验的同时,极大地减少客户端 JavaScript 的代码量和复杂性,可以把它理解为 HTMX 和 EJS 之间的某种“中间形态”——它既拥有传统模板引擎的直观,又具备现代“服务端驱动 UI”的能力。 💡 核心理念:在 HTML 中定义“请求” HMPL 最大的创新在于它的语法逻辑。传统的做法是“写 JS 发请求 -> 拿到数据 -> 更新 DOM”,而 HMPL 允许你直接在 HTML 模板中声明“这个区块的数据来自哪里”。 · 所见即所得的数据流:你不需要编写冗长的 fetch 或 axios 代码,只需在模板中使用特定的语法(如 {{ src: "/api/component" }}),HMPL 就会自动处理请求、获取服务端返回的 HTML 片段,并安全地渲染到页面上。 · 服务端为中心:它推崇将逻辑放回服务端,客户端只负责“按需获取和展示”。这使得它天然支持类似 SSR 的效果,但没有复杂的框架负担。 ✨ 关键特性解读 1. 极致轻量 (Lightweight) 在现代前端框架(如 React, Vue)动辄几十 KB 甚至更大的背景下,HMPL 的核心非常小巧(gzip 后约 24KB 甚至更小),极其适合对首屏加载速度和性能有高要求的项目。 2. 安全性内置 (Security First) 直接渲染服务端 HTML 最怕 XSS 攻击。HMPL 聪明地集成了 DOMPurify,默认对渲染内容进行清洗和消毒,解决了开发者最担心的安全隐患。 3. 极佳的开发者体验 (DX) 尽管是小众语言,但它提供了完善的配套工具,包括 VS Code 插件、Vite 插件和 Webpack Loader。这意味着你编写 HMPL 时也能享受到语法高亮、自动补全等现代开发体验。 4. 灵活性 (Flexibility) 它不是要取代整个框架。你可以把它作为一个独立工具使用,也可以将其嵌入到现有的 Vue 或 React 项目中,专门处理某些需要动态加载的服务端内容。 ⚖️ 行业价值与评价 在当前的前端领域,HMPL 的出现反映了一种反思: · 拒绝过度工程化:我们真的需要为每一个简单的动态页面都引入庞大的 SPA 框架吗?HMPL 给出了否定的答案。 · 更低的学习门槛:对于后端开发者或全栈开发者来说,HMPL 这种“写模板 = 写逻辑”的方式,比学习整套 React Hooks 或 Vue Lifecycle 要直观得多。 开源地址:

邵猛,中年失业程序员 😂 专注 - Context Engineering, AI Agents. 分享 - AI papers, apps and OSS. ex Microsoft MVP 合作 - 私信/邮箱:shaomeng@outlook.com 📢 公众号/小红书: AI 启蒙小伙伴

avatar for meng shao
meng shao
Sat Nov 29 13:52:14
hey @levelsio can you recreate this picture in every city and make a montage of it one day? (using photo ai maybe??)

hey @levelsio can you recreate this picture in every city and make a montage of it one day? (using photo ai maybe??)

curious guy creating things @ https://t.co/HXWladhJaA - up and coming wife guy

avatar for jack friks
jack friks
Sat Nov 29 13:49:52
I love repos like this, takes a niche and makes tons of domain specific skills that reflect actual work being done

I did Health AI at AWS and we had a lot of domain specific code per customer bootstrapping knowledge and common workflows

skills are an easy way to attach/detach+share this human knowledge with the model, and models excel at interpolating a skill and use it well in-context

skill-making is a worthwhile, relatively low-effort exercise for lots of teams trying to specialize agents for their domains
https://t.co/wP6ywg5oag

I love repos like this, takes a niche and makes tons of domain specific skills that reflect actual work being done I did Health AI at AWS and we had a lot of domain specific code per customer bootstrapping knowledge and common workflows skills are an easy way to attach/detach+share this human knowledge with the model, and models excel at interpolating a skill and use it well in-context skill-making is a worthwhile, relatively low-effort exercise for lots of teams trying to specialize agents for their domains https://t.co/wP6ywg5oag

building agents and harnesses, prev @awscloud, phd cs @ temple

avatar for Viv
Viv
Sat Nov 29 13:47:40
Is Vietnamese Pho just Chinese beef noodles or are Chinese beef noodles just Vietnamese Pho???

Is Vietnamese Pho just Chinese beef noodles or are Chinese beef noodles just Vietnamese Pho???

🇪🇺https://t.co/NdorAWrhrB @euacc 📸https://t.co/lAyoqmT9Hv $125K/m 🏡https://t.co/1oqUgfDEsx $40K/m 🛰https://t.co/ZHSvI2wRou $38K/m 🌍https://t.co/UXK5AFra0o $16K/m 👙https://t.co/RyXpqGvdBB $14K/m 💾https://t.co/M1hEUBB6da $6K/m

avatar for @levelsio
@levelsio
Sat Nov 29 13:45:01
Is Vietnamese Pho just Chinese beef noodles or are Chinese beef noodles just Vietnamese Pho???

Is Vietnamese Pho just Chinese beef noodles or are Chinese beef noodles just Vietnamese Pho???

🇪🇺https://t.co/NdorAWrhrB @euacc 📸https://t.co/lAyoqmT9Hv $125K/m 🏡https://t.co/1oqUgfDEsx $40K/m 🛰https://t.co/ZHSvI2wRou $38K/m 🌍https://t.co/UXK5AFra0o $16K/m 👙https://t.co/RyXpqGvdBB $14K/m 💾https://t.co/M1hEUBB6da $6K/m

avatar for @levelsio
@levelsio
Sat Nov 29 13:45:01
  • Previous
  • 1
  • More pages
  • 2041
  • 2042
  • 2043
  • More pages
  • 5634
  • Next