diff options
| author | Daniel Friesel <derf@finalrewind.org> | 2011-08-15 13:34:24 +0200 |
|---|---|---|
| committer | Daniel Friesel <derf@finalrewind.org> | 2011-08-15 13:34:24 +0200 |
| commit | 2505244db4689b848273a59ab2af0c87fd8eb816 (patch) | |
| tree | b5d91827f892a84c633f65a4ddba82e773ddc40f /cgi | |
| parent | 89adf31327f5526019115c31bddd57e2aa9640e6 (diff) | |
Show version information in HTML
Diffstat (limited to 'cgi')
| -rw-r--r-- | cgi/index.pl | 7 |
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 ); }; |
