=pod

=encoding utf8

=head1 NAME

L<Novel::Robot::Packer> pack novel/bbs content to ebook

小说/贴子 打包引擎

=head2 type

支持输出类型

    default : html 单网页格式

    others :  txt, epub, mobi, ...

=head1 FUNCTION

=head2 new

初始化解析模块

   my $packer = Novel::Robot::Packer->new(type => 'html');

=head2 main

打包文件

   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 } );

=cut
