Web Page Templates
In order to format e-mails or Web pages created by PonyExpress,
you will create separate template files. There are two types of
templates used with PonyExpress: e-mail templates and file templates.
All the templates are plain text files, so if you create them in
more advanced word processors like MS Word, make sure to save them
as plain text. Also since Windows applications may append file extensions
invisibly, make sure you rename the file once it is on the server
so that it does not have any 3-letter extension (e.g. .TXT).
File templates
The output.template file, used to format Web pages created by PonyExpress,
is just a bit more complex, although it is also quite flexible.
This template consists of 3 sections: header, entry, and footer.
The sections are separated by double-pound symbols (##) on lines
by themselves.
The header and footer will become the top and bottom portions of
the output file (output.html by default), while the entry section
will be repeated once for every new form submission. Each of these
sections can be as simple or as complex as you choose. Again you
will use square brackets [ ] to include data from your form.
The following template creates a simple Web guestbook:
<html>
<body>
<center><h2>My Guestbook</h2></center>
##
<p>
[timestamp]<br>
<a href="[email_address]">[fullname]</a>
<blockquote>
[comments]
</blockquote>
</p>
##
</body>
</html>
View
the guestbook
|