started writing some global vars

This commit is contained in:
2026-01-16 16:25:38 +00:00
parent 23a5d5596e
commit 2f2d3073d8
4 changed files with 4 additions and 1 deletions

View File

@@ -92,6 +92,7 @@ async fn listen(
async fn init<'a>() -> Result<AppState<'a>> {
let mut env = Environment::new();
let mut pages: Vec<Page> = Vec::new();
env.add_global("globals", context! {version => "0.1.0"});
let mut state: AppState = AppState { pages, env };
state.load_from_fs().await?;