Catalyst-ActionRole-Tabs
view release on metacpan - search on metacpan
view release on metacpan or search on metacpan
Catalyst-ActionRole-Tabs
This module allows to add 'Tab' attributes to action endpoints, and it
will automatically build a data structure suitable for rendering 'tabs'
to switch between the methods that share the same tab structure.
INSTALLATION
To install this module, run the following commands:
perl Makefile.PL
make
make test
lib/Catalyst/ActionRole/Tabs.pm view on Meta::CPAN
<ul class="tabs">
[% FOR tab IN tab_navigation %]
<li[% IF tab.selected %] class="selected"[% END %]>
<a href="[% tab.uri %]">[% tab.label %]</a>
</li>
[% END %]
</ul>
=head1 DESCRIPTION
This module allows to add 'Tab' attributes to action endpoints, and it
will automatically build a data structure suitable for rendering 'tabs'
to switch between the methods that share the same tab structure.
Although this was originally built to help with making tabbed interfaces,
it isn't limited to creating tabs, as it simply collects the information
about the related actions. Actions are considered to be related if they
share a namespace and the same captures from chained actions.
For examples of usage, please have a look in the test directory F<./t>
and its subdirectories.
view all matches for this distributionview release on metacpan - search on metacpan
( run in 1.161 second using v1.00-cache-2.02-grep-82fe00e-cpan-4673cadbf75 )