VERSION

DESCRIPTION

Since there seems to be no nice way of installing additional data with
Module::Build, this modules uses Data::Section to save all dthumb data
(images, javascript, stylesheets...) in its __DATA__. It provides methods to
retrieve this data and optionally replace certain variables in it with other
content.

While building App::Dthumb, this module reads all files in the share
directory and saves them in its __DATA__ section.

METHODS

Set replacement variables. For each hash key, when outputting data using the
get function, dthumb will replace occurences of "<!-- $key -->" or "/* $key
*/" (the dollar sign is literal) with its value.

$data->list_archived()

Returns an array of all saved data. That is, all files which do not end in
".dthumb".

$data->get($filename)

Returns the exact content of share/$filename (undef if no such file was
saved).