You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Marcus Irven <ma...@marcusirven.com> on 2006/09/25 17:28:36 UTC

conditional include stylesheets using Shell

Is there some way to have Shell create <link> elements surrounded by
conditionals?

e.g.
<!--[if IE 6]>
<link type="text/css" rel="stylesheet" href="http://cssfile.css" />
<![endif]-->

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org


Re: conditional include stylesheets using Shell

Posted by Andreas Andreou <an...@di.uoa.gr>.
No, but you can use the delegate parameter of @Shell
( see 
http://tapestry.apache.org/tapestry4/tapestry/ComponentReference/Shell.html 
)
to add anything you want inside <head>.

Also see
https://svn.sourceforge.net/svnroot/tacos/tacos-4.0/trunk/tacos-demo/src/context/WEB-INF/Border.html
and
https://svn.sourceforge.net/svnroot/tacos/tacos-4.0/trunk/tacos-demo/src/context/WEB-INF/Border.jwc
for a nice example of this approach.


Marcus Irven wrote:
> Is there some way to have Shell create <link> elements surrounded by
> conditionals?
>
> e.g.
> <!--[if IE 6]>
> <link type="text/css" rel="stylesheet" href="http://cssfile.css" />
> <![endif]-->
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: users-help@tapestry.apache.org
>
>

-- 
Andreas Andreou - andyhot@apache.org - http://andyhot.di.uoa.gr
Tapestry / Tacos developer
Open Source / J2EE Consulting


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org