From cac047d121cb0e45812e66f7e79b95349d577e71 Mon Sep 17 00:00:00 2001 From: Sijmen Date: Sat, 13 May 2023 14:21:48 +0200 Subject: [PATCH] Add current Empede version as HTML comment --- src/main.rs | 6 ++++++ templates/index.html | 2 ++ 2 files changed, 8 insertions(+) diff --git a/src/main.rs b/src/main.rs index 3c47f43..d4dc452 100644 --- a/src/main.rs +++ b/src/main.rs @@ -6,6 +6,12 @@ use serde::Deserialize; mod mpd; +macro_rules! crate_version { + () => { + env!("CARGO_PKG_VERSION") + }; +} + #[derive(Template)] #[template(path = "index.html")] struct IndexTemplate; diff --git a/templates/index.html b/templates/index.html index a1d8a4f..54fd146 100644 --- a/templates/index.html +++ b/templates/index.html @@ -3,6 +3,8 @@ Empede + +