NAME
App::Dthumb::Data - Retrieve installed data (like lightbox images)
SYNOPSIS
use
App::Dthumb::Data;
my
$data
= App::Dthumb::Data->new();
$data
->set_vars(
title
=>
'Something funky'
,
);
$data
->get(
'html_start.dthumb'
);
open
(
my
$fh
,
'>'
,
'close.png'
);
{
$fh
}
$data
->get(
'close.png'
);
close
(
$fh
);
VERSION
This manual documents App::Dthumb::Data version 0.2
METHODS
new
Returns a new App::Dthumb object. Does not take any arguments.
set_vars(%vars)
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.
list_archived
Returns an array of all saved data. That is, all files which do not end in ".dthumb".
get($filename)
Returns the exact content of share/$filename.
DEPENDENCIES
Data::Section
AUTHOR
Copyright (C) 2011 by Daniel Friesel <derf@chaosdorf.de>
LICENSE
0. You just DO WHAT THE FUCK YOU WANT TO.