diff options
Diffstat (limited to 'src/main.rs')
-rw-r--r-- | src/main.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs index f960422..4b12952 100644 --- a/src/main.rs +++ b/src/main.rs @@ -244,6 +244,7 @@ async fn verify_login(cfg: &Config, data: &FormData) -> Result<bool> { pub struct Meta<'a> { action: &'a str, redirect: &'a str, + version: &'a str, } // Processing the `body` called by cgit. @@ -253,6 +254,7 @@ async fn cmd_body(matches: &ArgMatches<'_>, _cfg: Config) { let meta = Meta { action: matches.value_of("login-url").unwrap_or(""), redirect: matches.value_of("current-url").unwrap_or(""), + version: env!("CARGO_PKG_VERSION"), }; handlebars .render_template_to_write(source, &meta, std::io::stdout()) |