This commit is contained in:
Maieul BOYER 2026-02-06 23:24:21 +01:00
parent 8afdd208c6
commit 8e82ec9523
Signed by: maix
SSH key fingerprint: SHA256:iqCzqFFF5KjRixmDExqbAltCIj9ndlBWIGJf3t9Ln9g
23 changed files with 3345 additions and 0 deletions

View file

@ -0,0 +1,20 @@
use froxy_templates::friends::{self, Friend};
fn main() {
let mut env = minijinja::Environment::new();
friends::add_to_context(&mut env);
let data = friends::render(
&env,
friends::FriendsData {
friends: std::iter::from_fn(|| Some(Friend {
name: "maiboyer".into(),
image: "https://friends.42paris.fr/proxy/resize/512/03c61af252becbca11aac5ff49a2e61c/maiboyer.jpg".into(),
position: Some("f1r1s1".into()),
last_active: None,
})).take(10).collect(),
},
)
.unwrap();
println!("{data}");
}