Normally this would be an easy task but as it is, my site has 6 separate SSIs for each page (the main page, header, footer, table1, table2, etc). How can I get my scripts to working within my layout if I have so many server side included files per page?
My first idea was to drop the 6 SSI's and make them into just 2 somehow and use them normally as a header/footer for the CGI scripts. I really don't think having to create tons of different templates with different included files is the route I want to take.
The only other idea I had would be to use LWP::Simple to open my site like a browser would see it (a full page with all the SSI content already nested inside) and then break it apart into 2 files (a header and a footer file). This would work on the fly and would change as often as the script is loaded and I would never have to create more server side includes to make it work. I would have to find a way to include an HTML comment for the script to separe the header and the footer from.
Right now, I think the last idea would be the best. I'm not even sure if it's possible, so any suggestions or ideas you can offer would be much appreciated.
Thanks.
In reply to CGI within your layout by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |