The setup: The Vault of Perversions is a free showcase for artists who work in our
genre (emotional impact art)... we [used to have a] haphazard collection of images
and menus [in the site] that were done at different times over the past two years.
We wanted to give everything a consistant look and feel, and it made sense to use
XSSI and templates to achive this.
The main menu is still very static (this will change as we add random image
generators and such). However, every other page in the vault is generated by one of two
templates. The menu pages are each HTML files that only define variables, and at the
end point to the menu template file. From a constructed menu, each image is a link--
some go to other menus, some go to larger versions of an image. For every larger version
of an image, a single image display template is used-- the variable is passed via the
? after the URL; the return link is provided by referencing the HTTP_REFERER variable.