Apache2-AutoIndex-XSLT
view release on metacpan or search on metacpan
AddDescription
AddDescription "The planet Mars" /web/pics/mars.png
This sets the description to display for a file. File is a file
extension, partial filename, wild-card expression or full filename for
files to describe. String is enclosed in double quotes (").
AddIcon
AddIcon (IMG,/icons/image.xbm) .gif .jpg .xbm
AddIcon /icons/dir.xbm ^^DIRECTORY^^
AddIcon /icons/backup.xbm *~
This sets the icon to display next to a file ending in name. Icon is
either a (%-escaped) relative URL to the icon, or of the format
(alttext,url) where alttext is the text tag given for an icon for
non-graphical browsers.
Name is either ^^DIRECTORY^^ for directories, ^^BLANKICON^^ for blank
lines (to format the list correctly), a file extension, a wildcard
expression, a partial filename or a complete filename.
examples/apache/conf/filetypes.dat view on Meta::CPAN
DisplayName: MS-DOS Batch File
IconDesc: C:\WINDOWS\System32\shell32.dll,-153
Extension: .bfc
Type: Briefcase
MimeType:
DisplayName: Briefcase
IconDesc: C:\WINDOWS\system32\syncui.dll,0
Extension: .bkf
Type: msbackupfile
MimeType:
DisplayName: Microsoft Backup File
IconDesc: C:\WINDOWS\system32\ntbackup.exe,10
Extension: .bmp
Type: OISbmpfile
MimeType: image/bmp
DisplayName: Bitmap Image
IconDesc: "C:\App\Office\OFFICE11\ois.exe",3
Extension: .bsc
Type: VisualStudio.bsc.7.1
MimeType:
lib/Apache2/AutoIndex/XSLT.pm view on Meta::CPAN
AddDescription "The planet Mars" /web/pics/mars.png
This sets the description to display for a file. File is
a file extension, partial filename, wild-card expression or full filename for
files to describe. String is enclosed in double quotes (").
=head2 AddIcon
AddIcon (IMG,/icons/image.xbm) .gif .jpg .xbm
AddIcon /icons/dir.xbm ^^DIRECTORY^^
AddIcon /icons/backup.xbm *~
This sets the icon to display next to a file ending in name. Icon is either a
(%-escaped) relative URL to the icon, or of
the format (alttext,url) where alttext is the text tag given for an icon for
non-graphical browsers.
Name is either ^^DIRECTORY^^ for directories, ^^BLANKICON^^ for blank lines
(to format the list correctly), a file extension, a wildcard expression, a
partial filename or a complete filename.
t/tests/30options.t view on Meta::CPAN
'<option name="DirectoryIndex" value="index.html" />',
'<option name="DirectoryIndex" value="index.shtml" />',
'<option name="RenderXSLTEnvVar" value="RenderXSLT" />',
'<option name="FileTypesFilename" value="filetypes.dat" />',
'<option name="DefaultIcon" value="/icons/__unknown.png" />',
'<option name="RenderXSLT" value="0" />',
'<option name="AddIcon" value="(IMG,/icons/image.xbm) .gif" />',
'<option name="AddIcon" value="(IMG,/icons/image.xbm) .jpg" />',
'<option name="AddIcon" value="(IMG,/icons/image.xbm) .xbm" />',
'<option name="AddIcon" value="/icons/dir.xbm ^^DIRECTORY^^" />',
'<option name="AddIcon" value="/icons/backup.xbm *~" />',
);
plan tests => scalar(@options);
my $url = '/';
my $data = GET_BODY($url);
for (@options) {
my ($option) = $_ =~ /name="(.+?)"/;
(my $regex = $_) =~ s/([\.\[\]\(\)\{\}\*\+\?\^\$])/\\$1/g;
( run in 2.120 seconds using v1.01-cache-2.11-cpan-49f99fa48dc )