I know this is not specifically for Django, but couldn’t this be a gamechanger for how Django-templates (and more) works?
I hope you are up for the debate.
Found here: https://pyscript.net/
<py-script> print('Now you can!') </py-script>
I’m not sure what you’re looking for here.
Or are you saying you’d like to see something like that introduced as another template rendering engine?
If so, I hope not. If anything like that ever gets introduced into Django, I won’t be using it.
I’ve spent a total of about 10 years working in and with systems that make it easy to mix business logic with presentation (Java/Spring, PHP) - and I can tell you they’re a maintenance nightmare. Trying to identify a specific source for a data element being displayed on a page ends up being far more difficult than it needs to be.
I like the fact that I’m forced to collect my data in the view, and specifically identify what’s going to be visible to the template engine when a template is rendered. It’s a big net-plus from where I sit and I hope it never changes.
Me neither Debate (just like your response, I guess)
Learning python I found it confusing mixing the different syntax and commands and thought it would improve many peoples full stack experience.
I wouldn’t say it doesn’t affect Django. If you haven’t seen it, take a look at Simon Willison’s blogpost about running Datasette Lite web application directly in a browser. A pure browser implementation is a very different use case from a backend used by a company. That doesn’t mean that django can’t play a part in simple, portable, client side browser applications. We just haven’t had the opportunity to try this out before.