Live data from Hacker News

Show HN: htmz – a low power tool for HTML

leanrada.com

71–80 of 256 posts

Re: Show HN: htmz – a low power tool for HTML

#71
post #57

In 2001 or so, I was building an HTML based email client. We used a hidden iframe to execute JS to load data from the server and manipulate the DOM with the result. It was not quite as neat and elegant as this—the browser support was not there. However, the basic mechanism was the same. It warms my heart to see the basic mechanism in such a compact package, without libraries upon libraries and machinations to make th…

This brings back memories. We did the same thing with a giant Fortran 77 app turned CGI app. It was my first job, fun times.

Re: Show HN: htmz – a low power tool for HTML

#72

This is a glorious demonstration of someone really understanding the platform. I don't expect I would ever use it, but I think it's excellent.

Understanding or not, certain decisions like overriding the semantic meaning of a hash in a url doesn't seem to be working with the platform. A better version would be adding a target to a `data-` attribute.

It's a fun project overall, though.

Re: Show HN: htmz – a low power tool for HTML

#75

Except using a URL fragment refers to a “resource that is subordinate to another, primary resource” not a destination. They point out the URL abuse, so why do it? Slot is also a part of the custom elements standard, but they say no custom elements. Why use only web standards and then use them incorrectly?

> Why use only web standards and then use them incorrectly?

Because it's a clever hack, not a standards proposal. Lighten up, Francis.

Re: Show HN: htmz – a low power tool for HTML

#78
This looks neat! I've never really been in to web development, but I'm curious... is it possible to create a standalone .html file for a browser-delivered app? Like, not just PWA or SPA, but... a single HTML App?

If I had modest amount of data in JSON baked into html, what's the barrier to something interesting, say... implementing a minimal spreadsheet or maybe just a sortable/filterable table?

Re: Show HN: htmz – a low power tool for HTML

#79

This is great. I had an idea to use named iframes and targeted forms for simple, server-rendered pages with built-in style-scoped widgets, without leaning into complex JS client-side. But, I never simplified it well nor expressed a polished and elegant realization of that idea, as this htmz looks to me to be. A reminder to never give up good ideas, focus on excellence, and focus on refinement to a completion of an id…

thanks for a high quality top comment!
Post reply on HN