Forum OpenACS Development: Re: template::head::add_css problem
Emma, a very good point to address.
In addition to dependencies, one should follow the performance rules for css and js (http://developer.yahoo.com/performance/rules.html#css_top) wherever possible.
My preferred approach would be to define ids for these definition files and use these to defines dependencies, like in
template::css_file lists \ -href /resources/acs-templating/lists.css \ -media all -title ... -alternate ... template::css_file my_lists \ -refines lists \ -href /resources/my-pkg/my-lists.css ...i would personally implement this in xotcl, where these files are xotcl objects having names which can be used as IDs. There it is easy to add additional attributes/methods, where the ordering could be calculated on a common superclass, etc., but that's another story.