Reflow build_environment doc comment

6c4a5fa · Gabriel Morell · 2026-10-28 20:51

2 files +3 -2

Files changed

modified src/lib.rs
+3 −2
@@ -34,8 +34,9 @@ pub struct AppState {
34 34 /// Build the minijinja environment: templates embedded by build.rs, plus (in
35 35 /// debug builds) a path loader for any template not embedded. Embedded
36 36 /// templates win and the environment caches what it loads, so editing a
37 −/// template needs a `cargo build` and restart, debug or not. `app_name` is exposed as a global
38 −/// so templates can render the brand without every handler passing it.
37 +/// template needs a `cargo build` and restart, debug or not. `app_name` is
38 +/// exposed as a global so templates can render the brand without every
39 +/// handler passing it.
39 40 pub fn build_environment() -> Environment<'static> {
40 41 let mut env = Environment::new();
41 42 minijinja_embed::load_templates!(&mut env);

Parents: 0c53c7d