News for hackers. Stuff that matters.
Re:It's React, but in Python by agumonkey on Tuesday June 06, 2023 @01:13PM (#36216000)
Could be fun to see this replacing jinja in old frameworks like django. Although inheritance had a better feel with templates..
Re:It's React, but in Python by robertlagrant on Tuesday June 06, 2023 @06:01PM (#36219657)
Django doesn't use Jinja, does it? I thought it did its own thing.
Re:It's React, but in Python by gkhartman on Tuesday June 06, 2023 @06:31PM (#36219982)
They have their own template engine, but it can be swapped for Jinja2 optionally.
Re:It's React, but in Python by agumonkey on Wednesday June 07, 2023 @06:16AM (#36224989)
yeah my bad, but django and jinja are similar in nature, it's "fat" html template with inheritance and blocks.
Re:It's React, but in Python by rmorshea on Tuesday June 06, 2023 @06:15PM (#36219805)
ReactPy dev here. We're actually contributing to a WIP PEP that would add JS-like tagged template literals to Python. We think this will open up a whole new world of templating and DSL possibilities: https://github.com/jimbaker/tagstr
Re:It's React, but in Python by kolanos on Tuesday June 06, 2023 @07:25PM (#36220506)
Is reactpy a fork of IDOM or a rebranding of it?
Re:It's React, but in Python by agumonkey on Wednesday June 07, 2023 @06:15AM (#36224987)
How much support does the idea have ? I like js tagged templates but I was wondering if it would impact the language too much.

Good luck nonetheless