summaryrefslogtreecommitdiff
path: root/cgi/index.pl
diff options
context:
space:
mode:
Diffstat (limited to 'cgi/index.pl')
-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 );
};