]> mj.ucw.cz Git - gallery.git/blobdiff - gal/README
Gallery2: Front-end attachment reform
[gallery.git] / gal / README
index 9c0d3500a7856d7d0c15d6a7fccf5de24766f677..e37fda09c1a9a65ee91b0e8c5e0c81ef6f01b207 100644 (file)
@@ -28,16 +28,13 @@ Files and directories
    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;
 
@@ -58,9 +55,10 @@ Files and directories
 
                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
 ~~~~~~~~