summaryrefslogtreecommitdiff
path: root/bin/db-fakedisplay
diff options
context:
space:
mode:
authorDaniel Friesel <derf@finalrewind.org>2011-07-21 18:23:58 +0200
committerDaniel Friesel <derf@finalrewind.org>2011-07-21 18:23:58 +0200
commit89526fb1e996ccc9710af9c1268eaf4359c4bc2a (patch)
treee88398f67262bf46624d92c11d84b23cd2b86879 /bin/db-fakedisplay
parent368d99d3e90a3491fe651b740d5a1bffd434fb6d (diff)
Add template for multi-departure lcd (the big screen on main stations)
Diffstat (limited to 'bin/db-fakedisplay')
-rwxr-xr-xbin/db-fakedisplay5
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/db-fakedisplay b/bin/db-fakedisplay
index f9ce899..32e342c 100755
--- a/bin/db-fakedisplay
+++ b/bin/db-fakedisplay
@@ -33,7 +33,10 @@ if ( $mode eq 'single' and not $template_file ) {
( $station, @platforms ) = @ARGV;
$template_file //= dist_file( 'db-fakedisplay', 'multi-lcd.html' );
-$template = HTML::Template->new( filename => $template_file );
+$template = HTML::Template->new(
+ filename => $template_file,
+ loop_context_vars => 1
+);
if ( not defined $station ) {
show_help(1);