[Erp5-dev] css and javascript registries - how to use business templates

bartek bartek at erp5.pl
Wed Apr 16 13:41:10 CEST 2008


bartek wrote:
> bartek wrote:
>> bartek wrote:
>>> Hello
>>>
>>> I'm working on registries for css and javascript - the code is here:
>>>
>>> http://svn.erp5.org/experimental/Experimental/Tool/HTMLIncludeTool.py?view=markup
>>>
>>> and the documentation is here:
>>>
>>> http://www.erp5.org/HowToUseExperimentalHTMLIncludeTool
>>>
>>> The question now is, how to make css and javascript installable through 
>>> business templates, so that (a) the core includes are not hardcoded into 
>>> global_definitions but defined in erp5_xhtml_style bt5 instead, and (b) 
>>> every bt5 can add its own required includes upon installation.
>>>
>>> The first idea is to add to a bt5 two properties: "template_css_id_list" 
>>> and "template_javascript_id_list", and manage them in a similar way to 
>>> that of skins. Is it an acceptable solution, or should it be handled in 
>> Going once...
> 
> Going twice...
> 

Ok, so I'll implement it like that.

Bartk

>>> some other way?
>>>
>>> Bartek
>>>
>>>
>>
> 
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-dev
> 


-- 
"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