Add application version to footer in base template and define VERSION constant

This commit is contained in:
Greg Burri 2025-04-08 18:11:23 +02:00
parent 1938571b4c
commit 24aa046f8c
2 changed files with 4 additions and 1 deletions

View file

@ -1,5 +1,8 @@
use std::time::Duration; use std::time::Duration;
/// Current version of the application.
pub const VERSION: &str = env!("CARGO_PKG_VERSION");
/// The name of the configuration file. /// The name of the configuration file.
/// it's located in the current directory. /// it's located in the current directory.
pub const FILE_CONF: &str = "conf.ron"; pub const FILE_CONF: &str = "conf.ron";

View file

@ -31,6 +31,6 @@
{% block body_container %}{% endblock %} {% block body_container %}{% endblock %}
<footer class="footer-container">gburri - 2025</footer> <footer class="footer-container">recipes v{{ crate::consts::VERSION }} - gburri 2025</footer>
</body> </body>
</html> </html>