Softpedia
 


LINUX CATEGORIES:



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

    HTML::Stream 1.60

    Download button

    No screenshots available
    Downloads: 337  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    Good (3.0/5)
    11 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Daniel T. Staal | More programs
    Perl Artistic License / FREE
    May 28th, 2008, 10:43 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    HTML::Stream description

    A HTML output stream class, and some markup utilities

    HTML::Stream is a HTML output stream class, and some markup utilities.

    SYNOPSIS

    Here's small sample of some of the non-OO ways you can use this module:

    use HTML::Stream qw(:funcs);

    print html_tag('A', HREF=>$link);
    print html_escape("");

    And some of the OO ways as well:

    use HTML::Stream;
    $HTML = new HTML::Stream *STDOUT;

    # The vanilla interface...
    $HTML->tag('A', HREF=>"$href");
    $HTML->tag('IMG', SRC=>"logo.gif", ALT=>"LOGO");
    $HTML->text($copyright);
    $HTML->tag('_A');


    # The chocolate interface...
    $HTML -> A(HREF=>"$href");
    $HTML -> IMG(SRC=>"logo.gif", ALT=>"LOGO");
    $HTML -> t($caption);
    $HTML -> _A;

    # The chocolate interface, with whipped cream...
    $HTML -> A(HREF=>"$href")
    -> IMG(SRC=>"logo.gif", ALT=>"LOGO")
    -> t($caption)
    -> _A;

    # The strawberry interface...
    output $HTML [A, HREF=>"$href"],
    [IMG, SRC=>"logo.gif", ALT=>"LOGO"],
    $caption,
    [_A];


    The HTML::Stream module provides you with an object-oriented (and subclassable) way of outputting HTML. Basically, you open up an "HTML stream" on an existing filehandle, and then do all of your output to the HTML stream. You can intermix HTML-stream-output and ordinary-print-output, if you like.

    There's even a small built-in subclass, HTML::Stream::Latin1, which can handle Latin-1 input right out of the box. But all in good time...

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    stream class | HTML stream | Perl module | HTML | stream | Perl

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

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