LibWeb::Themes::Default - Default HTML widgets and theme for libweb applications


NAME

LibWeb::Themes::Default - Default HTML widgets and theme for libweb applications


SUPPORTED PLATFORMS

BSD, Linux, Solaris and Windows.


REQUIRE


ISA


SYNOPSIS

  use LibWeb::Themes::Default;
  my $theme = new LibWeb::Themes::Default();
  my $tabs = [
               '<A HREF="/"><IMG SRC="/img/icon_home.png">Home</A>',
               '<A HREF="/reports">Featured reports</A>',
               '<A HREF="/shopping">Best buy</A>',
               '<A HREF="/log">Login</A>'
             ];
  my $tabbed_navigation_bar =
      $theme->tabber( -tabs => $tabs, -active => 2 );
  my $stock_quotes =
      $theme->bordered_table(
                              -content => [ $fetched_stock_quotes ]
                            );
  my $weather =
      $theme->bordered_titled_table(
                                     -title => "Today's weather",
                                     -content => [ $fetched_weather ]
                                   );
  my $back_issues =
      $theme->titled_table(
                            -title => "Looking for back issues?",
                            -content => [ $back_issues_archive_list ]
                          );
  my $news =
      $theme->enlighted_titled_table(
                                      -title => "Today's news",
                                      -content => [ $fetched_news ]
                                    );

Please see the synopsis of the LibWeb::HTML::Default manpage to see how those HTML constructs can be displayed.


ABSTRACT

This class provides several common table templates for HTML display. This allows Web application designers focus their efforts on the logic of programs; while Web page designers spend their efforts on customizing this default by ISAing this class, say LibWeb::Themes::Futuristic, and writing different themes. A sample MyTheme.pm is included in the distribution for your hacking pleasure.

The current version of LibWeb::Themes::Default is available at

   http://libweb.sourceforge.net

Several LibWeb applications (LEAPs) have be written, released and are available at

   http://leaps.sourceforge.net


TYPOGRAPHICAL CONVENTIONS AND TERMINOLOGY

Variables in all-caps (e.g. SITE_BG_COLOR) are those variables set through LibWeb's rc file. Please read the LibWeb::Core manpage for more information. Method's parameters in square brackets means optional.


DESCRIPTION

bordered_table()

Params:

  -content=> [, -border_color=>, -bg_color=>, align=>,
  -valign=>, -cellpadding=>, -width=> ]

Pre:

Post:

bordered_titled_table()

Params:

  -title=>, -content=> [, -title_space=>, -title_align=>,
  -border_color=>, -title_txt_color=>, -bg_color=>, -align=>,
  -valign=>, -cellpadding=>, -width=> ]

Pre:

Post:

enlighted_titled_table()

Params:

  -title=>, -content=> [, -title_space=>, -title_align=>,
  -title_bg_color=>, -title_txt_color=>, -title_border_color=>,
  -bg_color=>, -align=>, -valign=>, -cellpadding=>, -width=> ]

Pre:

Post:

tabber()

Params:

  -tabs=>, -active=> [, -active_color=>, -fade_color=>,
  -tab_padding=>, -tab_width=>, -gap_width=>, -total_width=>,
  -base=>, -base_height=>, -base_align, -left_stub=>,
  -right_stub=>, -left_stub_align=>, -right_stub_align=>,
  -left_stub_width=>, -right_stub_width=> ]

Pre:

Post:

table()

Params:

  -content=> [, -bg_color=>, -align=>, -valign=>, -width=> ]

Pre:

Post:

titled_table()

Params:

  -title=>, -content=> [, -title_space=>, -title_align=>,
  -title_bg_color=>, -title_txt_color=>, -bg_color=>, align=>,
  -valign=>, -cellpadding=>, -width=> ]

Pre:

Post:


AUTHORS

Colin Kong (colin.kong@toronto.edu)


CREDITS


BUGS

This release does not provide a lot of table templates and only a default theme is available. Hopefully more people can write more themes for LibWeb and make them available at http://libweb.sourceforge.net.


SEE ALSO

the LibWeb::HTML::Error manpage, the LibWeb::HTML::Site manpage, the LibWeb::HTML::Default manpage

 LibWeb::Themes::Default - Default HTML widgets and theme for libweb applications