Basic Structure For Minijinja With Multiple Templates Using A Struct In Rust
Warning
These notes may be out of date compared to the way I'm doing things now. They need to be re-vetted
Notes
-
Look at 2as2evj4 for loading templates from a directory
This works for specific, individual templates. I generally load an entire directory so I use >this instead>2ofddkppv9ik> as my goto
use context;
use Environment;
use Source;
use Serialize;
use fs;
This uses `Source::new() [TODO: Code shorthand span ] to get the templates instead of `.add_template()`rust on an `Environment::new()`rust becuase that doesn't work if you try to use it in a different function.
~ fin ~