Colin Kong > LibWeb-0.02 > LibWeb::Themes::Default

Download:
LibWeb-0.02.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.02   Source  

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 LibWeb::HTML::Default 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 LibWeb::Core 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 ^

LibWeb::HTML::Error, LibWeb::HTML::Site, LibWeb::HTML::Default

syntax highlighting: