Render Jinja on a separate green thread #543
-
Hi :) First of all, THANKYOU for your godly work! I'm trying to achieve the following scenario, I need to do a server-side event scenario from a few different areas in parallel. E.g: reading 2 files with the same name from 2 different folders, My thought process is spawning a tokio::task (thread) for each folder and render the template on each thread. I'm using AutoReload which |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
I would probably put the |
Beta Was this translation helpful? Give feedback.
AutoReloader::new(...)
toArc::new(AutoReloader::new(...))
web::Data<minijinja_autoreload::AutoReloader>
toweb::Data<Arc<minijinja_autoreload::AutoReloader>>