As a postscript to this, perhaps these components can have 'named segments' similar to the response object, so that I could write all the style definitions to the 'default' headStyle container, and then also have a named segment so that I could store all 'print' items together or another container...

This could also work for the HeadScript / InlineScript scripts - group them together for 'named' segments if I wished to group inline scripts by particular categories.

...so ultimately I'd like to do this:-

View:-
<? $this->headStyle()->appendStyle('#heading1 { background-image: url(/img/heading/member-foo.png) }') ?> <? $this->headStyle()->appendStyle('#heading2 { background-image: url(/img/heading/member-bar.png) }') ?> <? $this->headStyle()->appendStyle('#heading3 { background-image: url(/img/heading/member-other.png) }') ?>

Layout:-
<?= $this->headStyle() ?>

...and get this:-

<style type="text/css" media="screen">
/* <![CDATA[ */
#heading1 { background-image: url(/img/heading/member-foo.png) }
#heading2 { background-image: url(/img/heading/member-bar.png) }
#heading3 {background-image: url(/img/heading/member-other.png) }
/* ]]> */
</style>

Is this what other people expect, or is there a better way to achieve this within the current API? Am keen to see what everyone thinks...


--

Simon Mundy | Director | PEPTOLAB

""" " "" """""" "" "" """"""" " "" """"" " """"" "  """""" "" "

PeptoLab will be closed:
Saturday 15th  December through until Monday 17th December
Saturday 22nd December through until Wednesday 2nd January
For urgent requests, please call 0438 046 061

202/258 Flinders Lane | Melbourne | Victoria | Australia | 3000
Voice +61 (0) 3 9654 4324 | Mobile 0438 046 061 | Fax +61 (0) 3 9654 4124
http://www.peptolab.com

Reply via email to