Presenting Static Library Pages

Now we can begin implementing other parts of the site to go along with the store-front page. Let’s take care of the easiest thing first, which is to present the areas that consist of static information. These include the privacy policy, the customer satisfaction guarantee, and the contact information pages. The main content for these pages is static, but they need to have boilerplate added to give them the “site look.” We’ll implement display for static pages like these by setting up a page library and writing a simple page processor static.pl. To present any page that has a main content area containing static HTML, the processor reads the library file containing the content, adds the boilerplate, and sends the ...

Get MySQL and Perl for the Web now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.