summaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-08-15 13:34:24 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-08-15 13:34:24 +0200
commit2505244db4689b848273a59ab2af0c87fd8eb816 (patch)
treeb5d91827f892a84c633f65a4ddba82e773ddc40f /cgi
parent89adf31327f5526019115c31bddd57e2aa9640e6 (diff)
Show version information in HTML
Diffstat (limited to 'cgi')
-rw-r--r--cgi/index.pl7
1 files changed, 6 insertions, 1 deletions
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 );
};