[Seaside] Manipulation of BODY tag

Julian Fitzell julian at beta4.com
Mon Oct 20 09:51:35 CEST 2003


Eric Merritt wrote:
>>Well, you can certainly use css as well.... just
>>create a method called 
>>"style" that returns a string which contains normal
>>css.
>>
>>style
>>    ^'
>>	body {
>>   		margins: 10px;
>>		font-family: sans-serif;
>>  	}'
>>
>>You can also check out cssClass:, divNamed:, and
>>cssId: for other CSS 
>>usage stuff.
> 
> 
> 
> Just out of curiosity, and somewhat off topic, One of
> the many big wins with css is that the stylesheet it
> only pulled down once and then cached. Obviously, 
> this wont work if the stylesheet is embedded into the
> html or if the stylesheet url changes. How does
> seaside handle this?

If you use the #style method, seaside will keep the URL the same as long 
as the content doesn't change.  As soon as the resulting string is 
different, it will hash differently and be given a new URL.

Julian


-- 
julian at beta4.com
Beta4 Productions (http://www.beta4.com)




More information about the Seaside mailing list