[Erp5-dev] css and js list - refactoring?
bartek
bartek at erp5.pl
Wed Apr 2 09:37:46 CEST 2008
Jean-Paul Smets wrote:
> Hi,
>
> I understand the requirement and I think it is already possible to do
> with existing xhtml_style because the global variables which contain the
> list of CSS or JS can be updated by any component which is used in the
> HTML renderer (ex. a listbox renderer).
True - I forgot about this aspect.
> b- or implement a tool in charge of registering CSS and JSS required
> for rendering a page and then return either a list of registered CSS /
> JS or a minimised version of the concatenation of all CSS. Some CMS
> systems use this approach to accelerate the rendering of pages by the
> Web Browser.
Something like CSS Registry in Plone? ThaT could be a way to go. If I
have your "blessing", then I'll give it a try.
Bartek
> Regards,
>
> JPS.
>
> bartek a écrit :
>> Hello,
>>
>> Would there be any objections agains factoring css list and js list out
>> of global_definitions, into scripts like:
>> ERP5Site_getCSSList
>> ERP5Site_getJSList
>> ?
>>
>> RATIONALE: When doing experimental stuff there is often a need to add
>> something there - at the moment one has to either overwrite
>> global_definitions or do weird hacks to put two dtml docs of the same
>> name together. Such small refactoring make it much, much easier.
>>
>> Bartek
>>
>>
>
>
--
"feelings affect productivity. (...) unhappy people write worse
software, and less of it."
Karl Fogel, "Producing Open Source Software"
More information about the Erp5-dev
mailing list