[ZPT] @import?
Joel Burton
joel@joelburton.com
Thu, 7 Mar 2002 13:32:21 -0500 (EST)
On Thu, 7 Mar 2002, alan runyan wrote:
> <style type="text/css" media="all">
> @import "/path/top/mycss.css";
> or @import url("/path/to/mycss.css");
> </style>
>
> I need to have absolute paths to my CSS or acquistion will drag performance.
> I'm trying to anchor the path to the root of a CMF (code is there to do
> that) what
> isnt there to do it .. is approach to doing this in ZPT.
> @import "<metal:block tal:replace="string: $portal_url/mycss.css" />";
>
> will not render the metal block. <metal:block> </metal:block> throws an
> TAL.HTMLTALParser.NestingError
> because its inside <style> which is inside the <head> -- I guess.
>
> the current way is to use a python script which returns back HTML. but this
> doesnt work with Dreamweaver.
> as dreamweaver wont get the styles. anyway.. just asking the best approach
> to doing this.
>
> thanks,
> ~runyaga
alan --
Could you do this as:
<link rel="stylesheet" type="text/css" href="/sample.css"
tal:attributes="href string $portal_url/css" />
Or do you need to use an @import (say, to keep NN4 from trying to
deal with your CSS?
--
Joel BURTON | joel@joelburton.com | joelburton.com | aim: wjoelburton
Independent Knowledge Management Consultant