diff options
author | Daniel Friesel <derf@finalrewind.org> | 2011-07-21 18:23:58 +0200 |
---|---|---|
committer | Daniel Friesel <derf@finalrewind.org> | 2011-07-21 18:23:58 +0200 |
commit | 89526fb1e996ccc9710af9c1268eaf4359c4bc2a (patch) | |
tree | e88398f67262bf46624d92c11d84b23cd2b86879 /bin | |
parent | 368d99d3e90a3491fe651b740d5a1bffd434fb6d (diff) |
Add template for multi-departure lcd (the big screen on main stations)
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/db-fakedisplay | 5 |
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); |