On Monday 15 December 2008 3:50:24 am Adam Jimerson wrote: > Dermot Paikkos wrote: > >> -----Original Message----- > >> > >>> http://www.template-toolkit.org/ > >>> > >>> Mike > >> > >> Looking at the website and the documentation, still reading through > > > > it, > > > >> I'm still not sure how to mix this with my CGI scripts to make them > >> look > >> like the rest of the site even though Konqueror supports the <object> > >> tag, which I would think would be the last browser to support it. It > >> may just be that I'm new to CGI so I'm having to take what I am > >> learning > >> and throw it out the window? > > > > I am not sure TT is what you want. > > > > If you want to run perl code from within a html tags that's not possible > > as far as I know. You could use Greg's suggestion of > > http://perl.apache.org/embperl/ or use AJAX to call your perl cgi > > scripts. But if you insist that you want to put you code in the page > > then you really want ?php > > > > Dp. > > I'm not trying to put perl code into the page, they way I have it now is > I have the page generated by my CGI script inside another page that is > using my CSS. I've tried to have my CGI script directly handle my CSS > but it didn't work due to its limited support for CSS. So now I'm > trying to find a better way to make my CGI script look like the rest of > my site, I'm guessing this is what Template Toolkit if I can figure out > how to do it, or if my solution is the best.
if you decide to go with a template system , a good simple one I use quite a lot is the module HTML::Template . this allows you to have separate html template pages with place holder tags that your CGI script would process and then output to the calling browser. You could then just take your regular html page with your css stuff applied and replace those bits that have to have a calculation or other function with a template var. you then can maintain the look of your static pages with your dynamically generated pages . Greg -- To unsubscribe, e-mail: beginners-cgi-unsubscr...@perl.org For additional commands, e-mail: beginners-cgi-h...@perl.org http://learn.perl.org/