Open Studiedlist opened 10 months ago
I was doing that before, but the Askama syntax is:
use askama::Template;
In order to use a trait, you'd have to do
use dynja::{Template, TemplateTrait};
So I thought I would remove it. Although I'm also not a big fan to just placing a render function in the struct
Maybe we could have a trait render function in the TemplateFile
trait and also a render function implemented directly in the struct that just calls the one from the trait
I think, it's a good option
It would be handy to have such trait since with current implementation, it is impossible to create generic function, that will render any minijinja or askama template