On Tue, 17 Sep 2002, Will wrote: > 1.) Where the css sheet goes. I mean, if I make a folder just for > templates, then does it go there or in the cgi-bin? Or, if I just > keep all my .tmpl files in the the cgi-bin, then would it just go
you'd put your css files anywhere that you put regular html files. in short, it should be possible to point your browser to http://your_domain/path/to/your.css and not get a 404. Then, you just put that same url in the <head> section of your template. > 2.) I thought that in the scripts it is common > practice to have the header generated by the script, > like this: > > print->$CGI->header(); print $cgi->header(); or print $cgi->header('text/html; charset=iso-8859-1'); if you want to be W3C compliant. yes, that's common as it will also work in a mod_perl environment. This prints the HTTP header though, not the html header. > > or, > > print "Content-Type: text/html\n\n"; > > I would prefer to use the latter, however, I am not sure how either > would necessarily affect the head tags, which is where the style sheet neither method affects the <head> tags, but I've had problems with the latter method under mod_perl (it prints Content-type: ... in the html output). > include the head tags at all, and so it would seem I should just > include the head tags in the template. IS that right? yes, your template is a complete html file, unless it's embedded in something else. > so this answer may kill two birds with one stone. But, again, I've > heard some search engines wont reference CGI pages, but anyway... google will, but if you're worried about that, then do this: file.shtml: <!--#include virtual="/path/to.cgi?params" --> -- One of the most overlooked advantages to computers is... If they do foul up, there's no law against whacking them around a little. -- Joe Martin ------------------------------------------------------- This SF.NET email is sponsored by: AMD - Your access to the experts on Hammer Technology! Open Source & Linux Developers, register now for the AMD Developer Symposium. Code: EX8664 http://www.developwithamd.com/developerlab _______________________________________________ Html-template-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/html-template-users
