I've been playing with htpy recently. Really enjoying it. The Django integration is super. πŸ‘Œ

The whole "Let's build HTML in Python" thing sometimes feels a bit crazy, but it unlocks the dynamic composition that everyone thirsts for (especially you React folks πŸ˜‰)

Of course, nothing is new under the sun. Django Crispy Forms has had dynamic layouts for an age and a day:

https://django-crispy-forms.readthedocs.io/en/latest/layouts.html

We're all heading to the same lighthouse in the fog. We're just coming from different directions πŸ—ΊοΈ

Layouts β€” django-crispy-forms 2.4 documentation

@carlton are you going all in for everything or mainly for highly dynamic layouts/components?

@apollo13 Ah, yes. I need to write my β€œWhy” essay (working on it).

In short no β€” not for everything. There are basically two modes: page authoring (for which templates are still perfect) and then component UI work, particularly where you want **slots**, for which code is better.

The interest in htpy is for the latter case only. (Down thread, I have some add ons that are about making the template-code integration smooth in both directions.)

@carlton yeah that resonates with my experience as well πŸ€—