NAME
Toader::Render::Entry - This renders a Toader::Entry object.
VERSION
Version 0.1.1
SYNOPSIS
METHODS
new
This initiates the object.
args hash ref
obj
This is the Toader::Entry object to render.
toader
This is the Toader object to use.
toDir
This is the value used to get from the directory it is being rendered in back to directory storing stuff for that directory. By default this is '../../' as it needs to get from '.entries/'.$entryID back to the directory. Or we are creating a listing of the last several in the '.entries/' directory, it should be set it to '../'.
my $foo=Toader::Render::Entry->new(\%args);
if($foo->error){
warn('error: '.$foo->error.":".$foo->errorString);
}
content
This renders the content to be included in a static entry page.
my $content=$foo->content;
archive
This renders the '.entries/archive.html' file.
archiveContent
This renders the content for the index.html page for the entries.
index
This renders the '.entries/index.html' file.
indexContent
This renders the content for the index.html page for the entries.
render
This renders the object.
No arguments are taken.
tags
This renders the '.entries/tags.html' file.
tagsContent
This renders the content for the index.html page for the entries.
ERROR CODES
1, noObj
No Toader::Entry object specified.
2, noToaderObj
No Toader object specified.
3, objPerror
The Toader::Entry object has a permanent error set.
4, toaderObjPerror
The Toader object has a permanent error set.
5, noDirSet
The Toader::Entry object does not have a directory set
6, cleanupInitErrored
Failed to initialize the cleanup module.
7, cleanupErrored
Failed to cleanup.
8, backendInitErrored
Failed to initialize the backend.
9, pathhelperInitErrored
Failed to initialize the path helper.
11, noOutputDirSet
The Toader object does not have a output directory set.
12, outputDirDoesNotExist
The output directory does not exist.
13, outputEntryDirCreationFailed
The output entry directory could not be created.
14, outputFileDirCreationFailed
The output file directory could not be created.
15, generalInitErrored
Failed to initialize the Toader::Render::General object.
AUTHOR
Zane C. Bowers-Hadley, <vvelox at vvelox.net>
BUGS
Please report any bugs or feature requests to bug-toader at rt.cpan.org
, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Toader. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
SUPPORT
You can find documentation for this module with the perldoc command.
perldoc Toader::Render
You can also look for information at:
RT: CPAN's request tracker
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
ACKNOWLEDGEMENTS
LICENSE AND COPYRIGHT
Copyright 2011. Zane C. Bowers-Hadley.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.