AxKit-App-Gallery
view release on metacpan or search on metacpan
lib/AxKit/App/Gallery/Provider.pm view on Meta::CPAN
</perl-vars>
</config>
<image>
<filename>$file</filename>
<filesize>$filesize</filesize>
<size>$size</size>
<modified>$mod</modified>
<uri>$uri</uri>
<dirpath>$path</dirpath>
<content-type>$ct</content-type>
</image>
</imagesheet>
EOXML
# $r->log_error("Provider returning $xml");
return \$xml;
}
1;
lib/AxKit/App/Gallery/proofsheet.pod view on Meta::CPAN
<component>
<e>pics</e>
<u>pics</u>
</component>
<component>
<e>2002%2005%20(May)%20Singapore</e>
<u>2002 05 (May) Singapore</u>
</component>
</uri>
<!-- The local path to the directory and the content-type are
also included -->
<dirpath>/local/2/pub/Pictures/2002 05 (May) Singapore</dirpath>
<content-type>httpd/unix-directory</content-type>
</album>
<!-- Repeat <album> elements as necessary -->
</albums>
<!-- Each image is wrapped in an <image> element with various child
elements. All the images are wrapped in an <images> element. -->
<images>
<image>
lib/AxKit/App/Gallery/proofsheet.pod view on Meta::CPAN
<component>
<e>2002%2005%20(May)%20Singapore</e>
<u>2002 05 (May) Singapore</u>
</component>
</uri>
<!-- Full path to the image on the local file system -->
<dirpath>/local/2/pub/Pictures/2002 05 (May) Singapore</dirpath>
<!-- Content type, as determined by Apache -->
<content-type>image/jpeg</content-type>
<!-- There now follows information gleaned from the image using
the Image::Info module.
The information is structured as RDF, with elements from a
number of different XML namespaces used. Details about the
namespaces can be found in AxKit::App::Gallery::namespaces.
Elements in this example have been grouped according to
namespace prefix, and sorted according to element name for
stylesheets/addconfig.xps view on Meta::CPAN
$uri = join("\n",
map { "<component><e>$_</e><u>" . uri_unescape($_) . "</u></component>" } split(/\//, $uri));
my $dirpath = $r->filename();
my $filename = findvalue('filename', $node);
my $type = $r->lookup_file($filename)->content_type();
$t->{postchildren} = <<EOXML;
<uri>$uri</uri>
<dirpath>$dirpath</dirpath>
<content-type>$type</content-type>
EOXML
$t->{showtag} = 1;
return 1;
};
$t->{album}{testcode} = $t->{image}{testcode};
$t->{config}{testcode} = sub {
my $node = shift;
( run in 2.816 seconds using v1.01-cache-2.11-cpan-524268b4103 )