From 821c88d0de2263ae3c968160e2925bf834128b72 Mon Sep 17 00:00:00 2001 From: Daniel Friesel Date: Sat, 16 Jul 2011 14:00:03 +0200 Subject: db-fakedisplay(1): Document template variables --- bin/db-fakedisplay | 49 +++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 49 insertions(+) diff --git a/bin/db-fakedisplay b/bin/db-fakedisplay index 5350c05..3653f9d 100755 --- a/bin/db-fakedisplay +++ b/bin/db-fakedisplay @@ -132,6 +132,55 @@ Show version information. =back +=head1 TEMPLATES + +B uses HTML::Template(3pm) to create the display. In case you +want to create a custom template, the following variables are available: + +=head2 platform + +This is a loop variable, use it with C<< foo ... >>. + +This loop runs once for each requested platform. Inside it, you can use the +following variables: + +=over + +=item platform + +The platform from which the train departs + +=item time + +The departure time (I:I) + +=item train + +The train / line name, something like "RE 10111" or "S 1" + +=item via + +A loop variable. For each run, the B variable contains one of the +interesting stops the train will pass on its route. + +By default, it runs three times. + +=item destination + +The train's destination + +=item info + +Additional information about the train, such as delays. Unset if no +information is available (use C<< ... >>). + +=item no-data + +Set if no departures were available for the requested platform. + +=back + =head1 EXIT STATUS Zero. -- cgit v1.2.3