News for hackers. Stuff that matters.
Re:Ludic: New framework for Python with seamless Htmx support by paveldedik on Thursday March 21, 2024 @07:42AM (#39777317)
Yeah, I understand that. Now that Python 3.12 has better support for f-strings, I thought there might be a way to make it possible. But I am still not sure it will work. There is a pretty weird hack to make f-strings work while avoiding the possibility of rendering unsafe user input.
Re:Ludic: New framework for Python with seamless Htmx support by creshal on Thursday March 21, 2024 @07:46AM (#39777347)
It's nice for small hacks, but for anything longer than a couple dozen characters you're probably still better off making jinja2 (or similar) templates as painless as possible.