Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Perl Modules

    HTML::WWWTheme 1.06

    Download button

    No screenshots available
    Downloads: 356  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Chad Hogan | More programs
    GPL / FREE
    September 14th, 2007, 00:05 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::WWWTheme description

    A standard theme generation, including sidebars and navigation bars

    HTML::WWWTheme is a standard theme generation, including sidebars and navigation bars.

    SYNOPSIS

    use HTML::WWWTheme;
    my $Theme = new HTML::WWWTheme(@args);

    HTML::WWWTheme is a module that creates a standard sidebar and implements local colour conventions. It is used by the Apache::SetWWWTheme module to enforce this through the server. In fact, the code in this module was originally contained within the SetWWWTheme module, but at the suggestion of Tim Jenness, I separated this module to allow CGI programs to create standard pages that would fit in with the static pages that are automatically rewritten by the Apache module.

    So, static pages in the web tree are filtered through Apache::SetWWWTheme, and CGI-generated pages are generated with the help of HTML::WWWTheme. In this manner, a consistent look and feel can be maintained in all pages. Any changes in the structure of WWWTheme are automatically reflected in both the CGI-generated and static pages.

    The new() function will return a reference to a Theme object. It will accept an array of arbitrary length as arguments. Each element of this array must be a fully qualified path to a configuration file.

    Configuration is accomplished in three ways. First, one may pass arguments to the new() function. These arguments must be fully qualified paths to a configuration file. The syntax of the directives in this file is simple:

    @DIRECTIVE=value;
    for example,
    @BGCOLOR=#FFFFFF;

    or, in the case of a directive that accepts a list, the values are comma-separated and semi-colon terminated. Escaped semi-colons will be transformed into semi-colons, and will not terminate the directive.

    @DIRECTIVE=value1, value2, value3;

    @DIRECTIVE=value1, value2; still going, value3;

    In the second example, the value2; will be replaced with value2; in the parsed text.

    for example,
    @INFO=< A HREF="here.html" >Here< /a >, < A HREF="there.html" >There< /a >;

    Second, the GetConfiguration() function may be passed a list of full-paths to configuration files. The GetConfiguration() function will parse these files and set the appropriate values.

    Finally, one may use methods to directly change the settings of the page before it is produced. This is the recommended method, because it is the most intuitive and the easiest to figure out when you're trying to figure out someone else's code. I use these methods extensively in my Apache::SetWWWTheme module.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    theme generation | navigation bar | Perl module | theme | generator | sidebar

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM