From 2505244db4689b848273a59ab2af0c87fd8eb816 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Mon, 15 Aug 2011 13:34:24 +0200 Subject: Show version information in HTML --- cgi/index.pl | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'cgi/index.pl') diff --git a/cgi/index.pl b/cgi/index.pl index 866f867..a8c9f25 100644 --- a/cgi/index.pl +++ b/cgi/index.pl @@ -5,6 +5,8 @@ use File::ShareDir qw(dist_file); use HTML::Template; use Travel::Status::DE::DeutscheBahn; +our $VERSION = '0.00'; + sub get_results_for { my ($station) = @_; @@ -63,7 +65,10 @@ get '/multi/:station' => sub { } ); } - $template->param( departures => \@params ); + $template->param( + departures => \@params, + version => $VERSION + ); $self->render( text => $template->output ); }; -- cgit v1.2.3