sarahjames at home
Mar 19, 2000, 8:53 AM
Post #1 of 2
We are adding a bunch of new features to our web site. All new work is being
Is there an easy way to convert old mod-perl files to Embperl?
done in embperl - all old work was done with mod-perl that had the html code
embedded in it. Every page is dynamic, generating results based on user
queries of our mysql database. The look and feel of the site also changes
depending on the value of the $USER variable.
The new code consists of a sandwich epl file that provides header and footer
info, a border epl file that creates the left border that is context
specific to the body content, and the body epl containing the user requested
info. This is all driven off a perl module that accepts user input and does
the required queries and sets up the variables for the epl code.
We are running late (of course). While we had intended to convert all old
scripts that generate the body to embperl, I wondered if there was a
temporary solution that would allow the old perl modules to incorporate the
header and border epl files - while still using its own embedded html coding
to print the body of the page. One snag...we need user information to be
passed from the content to header files, as the header design is specific to
the user who is viewing the page.
Any suggestions gratefully accepted.