App::Basis::ConvertText2::Plugin::Text
Handle a few simple text code blocks
my $obj = App::Basis::ConvertText2::Plugin::Text->new() ; my $content = "" ; my $params = { } ; # new page my $out = $obj->process( 'page', $content, $params) ; # yamlasjson $content = "list: - array: [1,2,3,7] channel: BBC3 date: 2013-10-20 time: 20:30 - array: [1,2,3,9] channel: BBC4 date: 2013-11-20 time: 21:00 " ; $out = $obj->process( 'yamlasjson', $content, $params) ; # table $content = "row1,entry 1,cell2 row2,cell1, entry 2 " ; $out = $obj->process( 'table', $content, $params) ; # version $content = "0.1 2014-04-12 * removed ConvertFile.pm * using Path::Tiny rather than other things * changed to use pandoc fences ~~~~{.tag} rather than xml format <tag> 0.006 2014-04-10 * first release to github" ; $out = $obj->process( 'table', $content, $params) ; $content = "BBC | http://bbc.co.uk DocumentReference | #docreference 27escape | https://github.com/27escape" ; $out = $obj->process( 'table', $content, $params) ;
Various simple text transformations
Convert a YAML block into a JSON block
parameters
create a basic html table
parameters data - comma separated lines of table data hashref params of class - HTML/CSS class name id - HTML/CSS class width - width of the table style - style the table if not doing anything else legends - flag to indicate that the top row is the legends separator - characters to be used to separate the fields
create a version table
parameters data - sections of version information version YYYY-MM-DD change text more changes hashref params of class - HTML/CSS class name id - HTML/CSS class width - width of the table style - style the table if not doing anything else separator - characters to be used to separate the fields
create a list of website links links are one per line and the link name is separated from the link with a pipe '|' symbol
parameters class - name of class for the list, defaults to weblinks
1 POD Error
The following errors were encountered while parsing the POD:
'=item' outside of any '=over'
=over without closing =back
To install App::Basis::ConvertText2, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Basis::ConvertText2
CPAN shell
perl -MCPAN -e shell install App::Basis::ConvertText2
For more information on module installation, please visit the detailed CPAN module installation guide.