-
Nice article; I do this often with small server-side rendered Deno projects. I haven't felt the need to upgrade to a "proper" templating library yet.
I noticed the article doesn't mention escaping HTML, which you probably should do if you're expecting user input. Fortunately, such a utility is included in Deno's standard library: https://jsr.io/@std/html/doc/~/escape
-
Stream
Stream - Scalable APIs for Chat, Feeds, Moderation, & Video. Stream helps developers build engaging apps that scale to millions with performant and flexible Chat, Feeds, Moderation, and Video APIs and SDKs powered by a global edge network and enterprise-grade infrastructure.
-
html
🏛️ Super fast JSX runtime to generate HTML strings that works everywhere. If it supports string we got you covered. (by kitajs)
For those looking for something more robust... this is where I'd look: https://github.com/kitajs/html.
Also Honojs (hono.dev) has a built in HTML function which is quite good and I've used extensively.
-
typed-html
TypeSafe HTML templates using TypeScript. No need to learn a template library. (by nicojs)
kitajs already being a fork of https://github.com/nicojs/typed-html . What makes this one more robust or stable then?