Render A Basic Template From JSON Data With MiniJinja In Rust
This is a quick example showing how to take a string of JSON and use it as data to populate a MiniJinja template.
Code
use Environment;
use Value;
use fs;
Notes
The example has lines for using files as input that have been commented out in favor of inline Strings. This makes the example directly runnable without dependencies.
The two creates that were added for this are `minijinja`` and `serde_json``
Create a page from JSON with MiniJinja