App::WRT::Renderer - render a wrt repo to publishable HTML
use App::WRT; use App::WRT::Renderer; my $wrt = App::WRT::new_from_file($config_file); my $renderer = App::WRT::Renderer->new( $wrt, sub { say $_[0]; } ); $renderer->render();
Get a new Renderer. Takes an instance of App::WRT, a logging callback, and a App::WRT::FileIO or similar object to be used for the actual intake and mangling of things on the filesystem.
Write $contents to $path, using the FileIO object passed into the constructor above.
Render entries to publish_dir.
Make a directory path or log an error.
Call logging callback with passed parameters.
To install App::WRT, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::WRT
CPAN shell
perl -MCPAN -e shell install App::WRT
For more information on module installation, please visit the detailed CPAN module installation guide.