7 Jan
2006
7 Jan
'06
1:58 a.m.
/mymodule /mymodule.module (required) /mymodule.css (optional) /mymodule.js (optional)
Then the admin/modules page gets 2 extra columns of checkboxes: Use Module CSS and Use Module JS, both of which default to on. The system then, based on those checkboxes, adds the appropriate <script> and <style> tags. Overall less code to send to the browser, more flexibility for themers, and more logical grouping of resources.
I now await someone telling me why the above is dumb. :-)
What if module a and module b are quite similar, enough so that using the same css and js is reasonable? Then you will get two copies of each.