News for hackers. Stuff that matters.
Re:Type-safe HTML templating in Zig by boxed on Monday October 12, 2026 @02:52AM (#50052294)
I think nim also has this.

As for Django... well.. Django only has text formatting, you can write any garbage and broken html and lots of invalid templates with silent failures there unfortunately.

Re:Type-safe HTML templating in Zig by insin on Monday October 12, 2026 @05:21AM (#50053628)
This had me checking if anyone has implemented first-class support for Python JSX components in Django yet, and it could be... sort of... maybe viable with PyJSX? [1]

It looks like you'd have to implement something equivalent to provider/context functionality yourself if you want it, as well as a simple render()-like helper to render a component tree. I've not tried their VS Code plugin, but it's a good sign that they have one.

[1] https://github.com/tomasr8/pyjsx

Re:Type-safe HTML templating in Zig by pelme on Monday October 12, 2026 @06:02AM (#50054018)
We created https://htpy.dev to solve this for our Django app. Has been using it in production for multiple years. Works great with Django (or any Python web framework).
Re:Type-safe HTML templating in Zig by Humphrey on Monday October 12, 2026 @07:16PM (#50064394)
Oh that looks cool :)