NAME

App::WRT::Renderer - render a wrt repo to publishable HTML

SYNOPSIS

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

METHODS

new($class, $entry_dir, $logger, $io)

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($path, $contents)

Write $contents to $path, using the FileIO object passed into the constructor above.

render($class, $entry_dir)

Render entries to publish_dir.

dir_make_logged($path)

Make a directory path or log an error.

log(@log_items)

Call logging callback with passed parameters.