o gallery.cf -- all programs expect that the current directory contains
a configuration file. In fact, the config file is a perl script, whose
sole purpose is to set up paths, construct a gallery object and set its
- options. Also, it usually attaches an appropriate web front-end.
+ options.
A simple example looks as follows:
use UCW::Gallery;
- use UCW::Gallery::Web::Plain;
my $gal = UCW::Gallery->new;
- UCW::Gallery::Web::Plain->attach($gal);
-
$gal->set(Title => 'A Gallery', SubTitle => '(an example)');
return $gal;
use lib "../path/to/gallery/modules";
use UCW::Gallery;
+ use UCW::Gallery::Web::Plain;
my $gal = UCW::Gallery->load_config();
- $gal->get('WebFe')->dispatch();
+ UCW::Gallery::Web::Plain->run($gal);
Workflow
~~~~~~~~