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

bartek bartek at erp5.pl
Fri Apr 11 13:50:32 CEST 2008


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

> some other way?
> 
> 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