[ZPT] @import?
Evan Simpson
evan@zope.com
Thu, 07 Mar 2002 14:34:57 -0500
alan runyan wrote:
> <style type="text/css" media="all">
> @import "/path/top/mycss.css";
> </style>
There's a trick to this that works with <script> as well:
<style type="text/css" media="all" tal:content="structure string:
@import ($portal_url/mycss.css);
"></style>
Since both <script> and <style> can have multiple adjacent blocks, you
don't have to cram any non-dynamic lines in with the dynamic ones. For
example:
<script tal:content="structure string:
var home = '$portal_url';
"></script>
<script>
alert(home);
</script>
Cheers,
Evan @ Zope