Hi, Since I use the html-fragments-over-the-wire pattern (htmx) I create small function based views returning small html fragments.
Up to now I use format_html(). I am tired of passing in the variables like `foo=foo, bar=bar` into format_html(). I created a Python PEP to introduce a new way. The goal is to have something like the convenient f-string syntax combined with conditional_escape(). The draft is here: Template Literals: https://github.com/guettli/peps/blob/master/pep-9999.rst I am looking for feedback. Either here or on python-ideas. If Python would implement this PEP, would you accept patches to Django to support Template Literals? Background: I don't like the JS-Frontend madness. Django can do more than just provide an http API. Regards, Thomas -- You received this message because you are subscribed to the Google Groups "Django developers (Contributions to Django itself)" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-developers+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-developers/39137657-4b16-42ad-a2ea-4d97ba9382d4n%40googlegroups.com.