Outputs tables in any one of several supported types.
Features:
Each column has its own alignment option, left, center or right.
For internally generated HTML, this is done with a CSS div
within each td
, not with the obsolete td align
attribute.
But decimal places are not alignable, yet, as discussed in the "TODO".
But not both at the same time!
Auto-extension results in all rows being the same length.
This takes place before the transformation, if any, mentioned next.
The arrayref is returned by "render([%hash])", and the string by "render_as_string([%hash])".
When returning a string by calling render_as_string()
(which calls render()
), you can specify how the lines in the arrayref are joined.
In the same way the format
parameter discussed just below controls the output, the join
parameter controls the join.
The format of the output is controlled by the format
parameter to new()
, or by the parameter to the "format([$format])" method, or by the value of the format
key in the hash passed to "render([%hash])" and "render_as_string(%hash])", and must be one of these imported constants:
All headers, footers and table data are surrounded by ASCII characters.
The rendering is done internally.
See scripts/internal.boxed.pl and output file data/internal.boxed.log.
Render as github-flavoured markdown.
The rendering is done internally.
See scripts/internal.github.pl and output file data/internal.github.log.
Render as a HTML table. You can use the "pass_thru([$hashref])" method to set options for the HTML table.
The rendering is done internally.
See scripts/internal.html.pl and output file data/internal.html.log.
Passes the data to HTML::Table. You can use the "pass_thru([$hashref])" method to set options for the HTML::Table
object constructor.
Warning: You must use Text::Table::Manifold
's data()
method, or the data
parameter to new()
, and not the -data
option to HTML::Table
. This is because the module processes the data before calling the HTML::Table
constructor.
Passes the data to Text::CSV. You can use the "pass_thru([$hashref])" method to set options for the Text::CSV
object constructor.
See scripts/text.csv.pl and output file data/text.csv.log.
Passes the data to Text::UnicodeBox::Table. You can use the "pass_thru([$hashref])" method to set options for the Text::UnicodeBox::Table
object constructor.
See scripts/text.unicodebox.table.pl and output file data/text.unicodebox.table.log.
See also scripts/synopsis.pl, and the output data/synopsis.log.
--
You received this message because you are subscribed to the Google Groups "marpa parser" group.
To unsubscribe from this group and stop receiving emails from it, send an email to marpa-parser...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
It wasn't, but is now at savage.net.au/Perl/test.marpa.pl. Check line 42 for the dir structure.