Messages now have a title and a message

This commit is contained in:
Slatian
2023-02-21 08:55:29 +01:00
parent b9fc472120
commit c4379d4c19
2 changed files with 6 additions and 3 deletions

View File

@ -264,7 +264,10 @@ async fn hello_world_handler(
state.templating_engine.render_view(
&settings,
&View::Message("Hello! There, You, Awesome Creature!".to_string())
&View::Message{
title: "Hey There!".to_string(),
message: "You,You are an awesome Creature!".to_string()
},
).await
}