[ZPT] @import?

alan runyan alan runyan" <runyaga@runyaga.com
Thu, 7 Mar 2002 11:48:26 -0600


<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