Load Multiple MiniJinja Templates From A Directory
Code
//! ```cargo
//! [dependencies]
//! minijinja = { version = "1.0.10", features = ['loader'] }
//! ```
use ;
Results
Hello, Alan
Notes
The path in the `template_dir`` variable has a file in it called `alfa.html``
The content of `alfa.html`` is `Hello, {{ name }}``
The `{{ name }}`` string gets replace with value of `name`` from the `context!()``