Sorry, that was half written only...

In line with the discussion of TAP I would like to show a use case I
would like to be able to handle. I would like to be able to report
certain information in table format
in (or instead of) the diag call.

So my test code would look something like this:

my $machines = create_table({
     title => "Machines",
     columns => [
        {name => "Name"},
        {ip        => "IP"},
    ],
});


$machines->diag({
    name => "Foo",
    ip       => "10.1.1.1",
});

The output then can be in YAMLish or whatever but I would like to have
a parser that can generate HTML or whatever tables from this data.
Something like this:

---------------------------
| Name   | IP
| Foo      | 10.1.1.1
---------------------------

As I'll need something like this in the next few days already but I
would like to be forward compatible with YAMLish as much as possible,
how should I do this?

Gabor


--
Gabor Szabo
http://www.szabgab.com/
Perl Training in Israel  http://www.pti.co.il/

Reply via email to