TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Show HN: PageQL – Embed SQL directly in HTML

13 点作者 xiphias22 天前
Hi HN,<p>I&#x27;ve been experimenting for some time with writing web frameworks, and I thought it&#x27;s time to publish one that I really like: it just embeds SQL directly inside HTML without any glue language.<p>One of the main motivators for getting this minimal was the Hundred Year Web Seervice with htmx presentation by Alexandrer Petros (<a href="https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=lASLZ9TgXyc" rel="nofollow">https:&#x2F;&#x2F;www.youtube.com&#x2F;watch?v=lASLZ9TgXyc</a>), that showed that both HTML and SQL have staying power, but he couldn&#x27;t really find a perfect glue language for his app. After some searching I only found ColdFusion to have implemented the same idea, but instead of the reactive direction that I want to go to, it went towards imperative programming which is not the direction I want to go to. I tried to learn from the original (pre-Adobe) ColdFusion, but make it closer to standard SQL.<p>I plan to keep the language super simple, just like a template language, make it provide 80% of the CRUD functionality a small web-site needs and add more extension points around it to handle other complexity by other languages.<p>I have already created a reactive SQL implementation, but the framework got too complex to use, so this is my next experiment (and HTMX can already provide a lot of interactivity).

2 条评论

bdcravens2 天前
&gt; I tried to learn from the original (pre-Adobe) ColdFusion, but make it closer to standard SQL.<p>Are you referring to querying a datasource, where the SQL is just passed to the external database engine, or to the ability to query an existing dataset using the embedded SQL engine?
评论 #43913770 未加载
gedy2 天前
That&#x27;s fun. I remember doing this ~2001 with some JSP tags. Everyone thought it was terrible idea but it was really productive tbh.
评论 #43914769 未加载
评论 #43915766 未加载