[jifty-devel] using TabView
Chia-liang Kao
clkao at bestpractical.com
Mon Nov 5 14:49:50 EST 2007
> I was wondering if there are any examples using TabView. Googling only seems to refer to the code base... and back to the doco, which doesn't provide a great deal to say where/when/what should be coded for it... i.e. per:
> SYNOPSIS ^
> use Jifty::Plugin::TabView::View;
> template 'index.html' => page {
> my $self = shift;
> $self->render_tabs('foo', [qw(id)], qw( foo bar_tab ) );
> };
> template 'foo' => sub { ... };
> template 'bar' => sub { ... };
> ...similarly, there was nothing in the List archives.
> I use the 'out of the box' Mason, with a bunch of files under .../templates (and fragments). Are there any caveats on TabView use, e.g. the number of page regions in a tab/view... or other design considerations for using it?
This is meant to be used by TD views, as it's calling the methods for
$self as tabs. even so, one caveat is your view class must implement
the fragment_for method that returns the full path for the guven
argument, which should be handled by some menchaisn in TD view mounting.
Cheers,
CLK
More information about the jifty-devel
mailing list