Text::Amuse::Compile::Merged - Merging muse files together.
my $doc = Text::Amuse::Compile::Merged->new( files => ([ file1, file2, ..]); $doc->as_html; $doc->as_splat_html; $doc->as_latex; $doc->header_as_html; $doc->header_as_latex;
This module emulates a Text::Amuse document merging files together, and so it can be passed to Text::Amuse::Compile::File and have the thing produced seemlessly.
The constructor requires the files argument. Any other option is considered part of the header of this virtual Text::Amuse document.
files
On creation, the module will store in the object a list of Text::Amuse objects, which will be merged together.
When asking for header_as_html, you get the constructor options (save for the files option) properly formatted.
The headers of the individual merged files go into the body.
The first file determine the main language of the whole document.
Anyway, if it's a multilanguage text, hyphenation is supposed to switch properly.
Return the english name of the main language
Return the code of the main language
If it's a multilingual merged text, return an arrayref of the other language names, undef otherwise.
If it's a multilingual merged text, return an arrayref of the other language codes, undef otherwise.
Return the hyphenation of the first text.
Return a list of HTML fragments.
Implements the raw_html_toc from Text::Amuse
raw_html_toc
Implement the attachments methods from Text::Amuse::Document
attachments
Text::Amuse::Document
Return the latex body
Always returns true
Always returns false
Returns an hashref with the LaTeX-formatted info (passed to the constructor).
Same as above, but with HTML format.
Implements the header_defined method of Text::Amuse.
header_defined
Accessor to the list of Text::Amuse objects.
Accessor to the list of files.
Accessor to the headers.
Accessor to the Template::Tiny object.
Accessor to the Text::Amuse::Compile::Templates object.
To install Text::Amuse::Compile, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Text::Amuse::Compile
CPAN shell
perl -MCPAN -e shell install Text::Amuse::Compile
For more information on module installation, please visit the detailed CPAN module installation guide.