[Zope] External CSS via ZPTs
John Schinnerer
johnschinnerer@yahoo.com
Sat, 29 Jun 2002 14:09:17 -0700 (PDT)
Howdy,
> In my case, I just made the external style sheet a DTML method, with
> nothing but the stylesheet content itself. No setheader commands or
> anything. It's worked so far, but might not be the absolute best
> solution.
I do similar, but put my external style sheet content in DTML documents
instead of methods (seems like the most 'generic' container for static
HTML/CSS content...or should I use a File object instead?).
I link them as in normal HTML, but the links are in ZPTs instead of
DTML docs/methods, like:
<head>
...
<title tal:content="template/title">Title Of Page</title>
...
<LINK REL=StyleSheet HREF="onestylesheet.css" TYPE="text/css">
...
</head>
...
Haven't grasped the purpose to the setheader commands - what fancy
stuff can one do with them?
John S.
__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com