Re: Python PEP for more convenient HTML generation

2021-06-11 Thread guettli
Adam Johnson schrieb am Freitag, 11. Juni 2021 um 10:17:02 UTC+2: > Hi Thomas > > As I understand there wouldn't be much required by Django to support this > - just one function. So if it came to Python, I think we'd like to see a > working snippet, maybe in a third party package, before mergi

Re: Python PEP for more convenient HTML generation

2021-06-11 Thread 'Adam Johnson' via Django developers (Contributions to Django itself)
Hi Thomas As I understand there wouldn't be much required by Django to support this - just one function. So if it came to Python, I think we'd like to see a working snippet, maybe in a third party package, before merging support. In terms of the PEP, - there are already "too many" ways to templat

Python PEP for more convenient HTML generation

2021-06-11 Thread guettli
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. T