TopBar.pm 495 B

123456789101112131415161718192021222324
  1. package Trog::Component::TopBar;
  2. use 5.040;
  3. use re '/aasx';
  4. use warnings FATAL => 'all';
  5. use Trog::Component ();
  6. =head1 Trog::Component::TopBar
  7. The top bar's theme slot, beside the search box. Empty by default.
  8. =head1 FUNCTIONS
  9. =head2 render(%args) = STRING
  10. Render topbar.tx. Stock reads no variables; anything passed is handed to the
  11. template, so a theme's override is free to want some.
  12. =cut
  13. sub render (%args) { return Trog::Component::render_template( 'topbar.tx', \%args ) }
  14. 1;