castle amber

Webshop publishing

A program written in the Perl programming language was created to generated the static HTML files for an online shop. Configuration files and the directory structure of the site were used to create the content and the relations between the files and processed by the Perl program.

A prices file provides the price for each item and conversion factors for several valuta. For each language used on the site, a file defines the title of each page and a description of each item on sale.

The dimension of the photo of each item is read from the image file by using the Image::Size Perl module, available via the CPAN, and used as hints for faster page rendering. Also the Perl program added support for a shopping cart system to each web page showing a product.