Text::CGILike - Wrapper to create text file using the CGI syntax
version 0.6
CGI is an old module, and now we can create html or text with a simple template.
I have create this module to be able to format my email in html or text by just changing the module I use.
So I don't use template in that case, just a simple '--format=text/html'
To change columns using keywords
require Text::CGILike; Text::CGILike->import(':standard'); require Term::Size; my ($columns) = Term::Size::chars(); $columns ||= 80; my ($TCGI) = Text::CGILike->DEFAULT_CLASS; $TCGI->columns($columns);
number of columns to use by default
This singleton is use if you don't instanciate Text::CGILike
Start the document, you can pass headers like CGI here. Only '-title' will be used.
start_html('my title'); start_html(-title => 'my title');
Finish the document.
end_html;
Completly ignore. no meta in brute text
Create a box that define the bigger text.
h1('my big text');
Create a row of '#' (horizontal rule)
break line
center the text, and respect wrap of text
create list
do list starting with an asterix '*'
Import tags. check CGI for more information.
CGI
Please report any bugs or feature requests on the bugtracker website https://github.com/celogeek/Text-CGILike/issues
When submitting a bug or request, please include a test-file or a patch to an existing test-file that illustrates the bug or desired feature.
celogeek <me@celogeek.com>
This software is copyright (c) 2014 by celogeek <me@celogeek.com>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Text::CGILike, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::CGILike
CPAN shell
perl -MCPAN -e shell install Text::CGILike
For more information on module installation, please visit the detailed CPAN module installation guide.