TopBar.pm 464 B

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