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

Dynamic rendering mode #491

Open
est31 opened this issue Jun 9, 2021 · 5 comments
Open

Dynamic rendering mode #491

est31 opened this issue Jun 9, 2021 · 5 comments

Comments

@est31
Copy link

est31 commented Jun 9, 2021

Inspired by concerns voiced in this comment that askama has a bad edit cycle because it involves recompilation each time. Ideally, to solve this, one could have a second rendering engine that runs during runtime. See also @djc 's response in the thread.

@djc
Copy link
Owner

djc commented Jun 9, 2021

See also #389, #273.

@SimonAdameit
Copy link

This is something that I'd be interested in for another use case: I'd like to use the same template engine for static and dynamic parts of a web site. While the dynamic parts are fine to be statically compiled into a new binary, static parts should just be able to be generated by running a cmd tool and not involve compilation.

@djc
Copy link
Owner

djc commented Aug 8, 2023

See also #425 for more discussion of potential designs and a bunch of workarounds. We should really probably coalesce all of these issues into a single one. Anyway, something that's not changed is that I'm mostly unlikely to start work on solving this. That said, now that askama_parser is available as a standalone crate (on main only for now) this might make things like this easier.

@kellpossible
Copy link

One use case which I haven't seen mentioned here yet is the ability to override templates at runtime to allow user customizable templates

@djc
Copy link
Owner

djc commented Jan 10, 2024

Folks interested in this issue might like @rdbo's dynja, which uses minijinja for the debug profile and Askama for the release profile.

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

4 participants