Y
Hacker News
new
|
ask
|
show
|
jobs
by
agumonkey
1106 days ago
Could be fun to see this replacing jinja in old frameworks like django. Although inheritance had a better feel with templates..
2 comments
rmorshea
1106 days ago
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
link
agumonkey
1106 days ago
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
link
kolanos
1106 days ago
Is reactpy a fork of IDOM or a rebranding of it?
link
robertlagrant
1106 days ago
Django doesn't use Jinja, does it? I thought it did its own thing.
link
gkhartman
1106 days ago
They have their own template engine, but it can be swapped for Jinja2 optionally.
link
agumonkey
1106 days ago
yeah my bad, but django and jinja are similar in nature, it's "fat" html template with inheritance and blocks.
link