NAME
Text::Amuse::Compile::Merged - Merging muse files together.
SYNOPSIS
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.
METHODS
new(files => [qw/file1 file2/], title => 'blabl', ...)
The constructor requires the files
argument. Any other option is considered part of the header of this virtual Text::Amuse document.
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.
as_latex
Return the latex body
wants_toc
Always returns true
is_deleted
Always returns false
header_as_latex
Returns an hashref with the LaTeX-formatted info (passed to the constructor).
header_as_html
Same as above, but with HTML format.
INTERNALS
docs
Accessor to the list of Text::Amuse objects.
files
Accessor to the list of files.
headers
Accessor to the headers.
tt
Accessor to the Template object.
templates
Accesso to the Text::Amuse::Compile::Templates object.