bartek
2008-04-10 11:13:17 UTC
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
some other way?
Bartek
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
some other way?
Bartek
--
"feelings affect productivity. (...) unhappy people write worse
software, and less of it."
Karl Fogel, "Producing Open Source Software"
"feelings affect productivity. (...) unhappy people write worse
software, and less of it."
Karl Fogel, "Producing Open Source Software"