-
A bit off topic, but whenever Rails and templating get brought up, I have to plug my absolute favorite project out there: [Phlex](https://beta.phlex.fun/). It's like ViewComponents, but swap out the ERB for pure Ruby. It has been a joy to develop with.
With the addition of Phlex::Kit, it has made building out a component library pretty easy too. [RubyUI](https://github.com/ruby-ui/ruby_ui) does a great job of showing off how to do this.
-
SaaSHub
SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives
-
A bit off topic, but whenever Rails and templating get brought up, I have to plug my absolute favorite project out there: [Phlex](https://beta.phlex.fun/). It's like ViewComponents, but swap out the ERB for pure Ruby. It has been a joy to develop with.
With the addition of Phlex::Kit, it has made building out a component library pretty easy too. [RubyUI](https://github.com/ruby-ui/ruby_ui) does a great job of showing off how to do this.
-
Zulip
Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
Zulip does this: https://github.com/zulip/zulip/blob/main/zerver/models/__ini...
Zulip in general is a great example of a large open source Django app that's been maintained and actively developed for a long time. I use it as a reference quite a lot.
-
I saw someone mention reactived but there's also https://github.com/wrabit/django-cotton
-
I use htpy and it's great. There are others like htmy[0] too.
The problem with templates in general is you can write malformed HTML in them. The nice thing about htpy et al is you simply can't do that. I feel like what we really want is JSX in Python, where you can write XML-like syntax and it's converted into Python at import time.
[0] https://volfpeter.github.io/htmy/
-
-
-
It can, just needs to be built. I'm thinking of something that can both compile to WASM AND be somewhat like Phoenix Liveview.
Looks like there's some attempts for Phoenix Liveview for Python.
https://github.com/liveviews/liveviews?tab=readme-ov-file#py...
-
Wouldn't know. However, some standalone projects are attempting to replicate the same experience, check Tortoise ORM - https://github.com/tortoise/tortoise-orm.
-
PEP 750 started its life in part as a result of learnings from pyxl [0], which used some clever hacks to add a JSX-like syntax to Python.
In the end, my instinct is that t-strings are the better more generic feature to add to the language itself today.
That said, I'd love to see the Python ecosystem get to the point where it's relatively easy to implement transpilers and to get them integrated with key tools (colorizers, formatters, linters, type checkers, etc). After that: let a thousand JSX-likes bloom.
[0] https://github.com/dropbox/pyxl