--- [EMAIL PROTECTED] wrote: > Further I was trying to avoid having to set "statics" if you will in each > master html template stating where each is. That's a pain, and not very > (to use the ultimate programmers curse) efficient.
Seems to me that setting a "static" CSS file with an ABSOLUTE path is the most painless way to go, both for the programmer and the template. I always set up a CSS directory off of the the main Apache document path: /usr/local/apache/sites/www.foo.com/html/css which translates to http://www.foo.com/css/ Then i start with one CSS file: http://www.foo.com/css/default.css That way, all templates can reference it ABSOLUTELY ... let Apache worry about the path structure ... but say ... ... why aren't you wrapping your templates with a WRAPPER like so: (skeleton.tt) <html> <head> <title>[% title %]</title> <link rel="stylesheet" href="/css/default.css" type="text/css" /> </head> <body> [% content %] </body> </html> Then all of your content can wrap itself inside of that skeleton like so: (foo.html) [% WRAPPER skeleton.tt title = 'Foo' %] hello world [% END %] (bar/baz.html) [% WRAPPER ../skeleton.tt title = 'Foo' %] hello person [% END %] Seems much more managable to me that way ... hope this helps :) jeffa __________________________________ Do you Yahoo!? Yahoo! Finance: Get your refund fast by filing online. http://taxes.yahoo.com/filing.html _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
