Novel::Robot::Packer pack novel/bbs content to ebook
小说/贴子 打包引擎
支持输出类型
default : html 单网页格式 others : txt, epub, mobi, ...
初始化解析模块
my $packer = Novel::Robot::Packer->new(type => 'html');
打包文件
my $book_ref = { writer => 'xxx', book => 'yyy', item_list => [ { id=>1, title=>'aaa', content=> '<p>kkk</p>' }, { id=>2, title=>'bbb', content=> '<p>jjj</p>' }, ], }; my $ret = $packer->main($book_ref, { with_toc => 1 } );
To install Novel::Robot, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Novel::Robot
CPAN shell
perl -MCPAN -e shell install Novel::Robot
For more information on module installation, please visit the detailed CPAN module installation guide.