Provided by: ample_0.5.7-6_i386
ample.html - html template for Ample
This file, by default /etc/ample/ample.html, is read by Ample at
startup and used as a base for it's HTML pages. These pages are
rendered whenever a webbrowser connects and requests a list of
available songs and directories (typically done by connecting to
The file is divided into three sections, the header, the middle and the
footer. The header and the footer are the same on each page generated
while the "middle" is copied into the final HTML document once for each
file or directory that is going to be listed. Although this may sound
confusing, it will probably become much more evident once you look at
the example below.
Variables are written in uppercase and enclosed within "at" signs
(example: @NAME@) and are replaced dynamically when the page is
constructed. Some variables can exist anywhere in the document and
some can only exist in the "middle" section, see the information about
each variable for details.
<!-- Beginning of header -->
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<p><h2>Tracks currently available in @PATH@</h2></p>
<a href="index.m3u">playlist for this dir</a> |
<a href="rindex.m3u">recursive playlist</a> ]
[ <a href="../index.html">Up one level</a> ]
<table border="1" cellspacing="0" cellpadding="0" bordercolor="#000000">
<!-- End of header -->
<!-- Beginning of "middle" -->
<!-- End of "middle" -->
<!-- Beginning of footer -->
<p align="right"><font size="-1">
powered by Ample, for more information, see the
<a href="http://ample.sourceforge.net">project homepage</a>
<!-- End of footer -->
SUMMARY OF VARIABLES
SPECIAL - Only used once
GLOBAL - Can be used anywhere
NON-GLOBAL - Can only be used in the "middle" section
These can only be used once.
BEGIN This variable (when placed in the beginning of a new line) marks
the end of the header section and the start of the "middle"
END This variable (when placed in the beginning of a new line) marks
the end of the "middle" section and the start of the footer
These can be used anywhere.
The name of the server as given in ample.conf(5).
PORT The port that the server is listening to.
PATH The current path the user is viewing.
These can only be used in the "middle" section.
NAME The name of the song or directory.
URL The URL of the song or directory.
LENGTH The song length (in seconds) or blank if it is a directory.
TITLE The title of the song or "DIR" if it is a directory.
SIZE The file size or blank if it is a directory.
TYPE "FILE" if it is a file or "DIR" if it is a directory.
David Hardeman <firstname.lastname@example.org>