Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hot reloading on debug mode with python [discussion] #389

Open
yaskhan opened this issue Nov 24, 2020 · 1 comment
Open

Hot reloading on debug mode with python [discussion] #389

yaskhan opened this issue Nov 24, 2020 · 1 comment

Comments

@yaskhan
Copy link

yaskhan commented Nov 24, 2020

How about adding a hot reload using Python? Using Pyo3 crate, you can call Python code that compiles templates in real time.

https://pyo3.rs/master/python_from_rust.html
https://jinja.palletsprojects.com/en/2.11.x/
#273

@djc
Copy link
Collaborator

djc commented Nov 24, 2020

As I explained in #273, the syntax is actually different from Jinja, so I don't think this will work. Rewriting the Askama AST into Tera AST and interpreting it there might work, but I'm unlikely to work on it anytime soon (unless funding is available).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants