----- "Ian Bicking" <[EMAIL PROTECTED]> wrote: > Thomas E Jenkins wrote:
> Zope has some fancy stuff for combining resources transparently, and > it > has generally bugged the hell out of me. Probably Dojo is less > transparent, and more sensible as a result. > Except for shrinking, it all is pretty simple stuff -- find the files, > > concatenate them, run the shrinker. The WebHelper distutils extension > > is okay, but could be better, e.g., make it easier to define what > files > are compressed where, and easier for that to be confirmed by the > <link> > generating code. > > Part of the problem is fitting the configuration in setup.cfg. Maybe > it > should be a separate config file referred to by setup.cfg, like: > > [main.js] > combine = file1.js file2.js file3.js > shrink = true > # shinker = yui, jsmin, shrinksafe, etc > > [main.css] > combine = file1.css file2.css > > [extra.js] > combine = file4.js file5.js > shrink = true > > > Then have the combiner write out something that indicates what files > were combined to where, and have something like: > > link_javascripts(['file1.js', 'file3.js']) > > And it would produce as many <link> tags as necessary to make sure all > > those files are available (and also use some debug flag). I haven't managed to make the webhelpers command work, with your example config code. It says command not found. -- Pedro Algarvio __ ___ ___ _______ ___ __ | Y .' _| _ .-----.' _| |_ .-----.----.-----. |. | | _| 1___| _ | _| _|__| _ | _| _ | |. | |__| |____ |_____|__| |____|__|_____|__| |___ | |: 1 | |: 1 | |_____| |::.. . | |::.. . | ufs [AT] ufsoft [DOT] org `-------' `-------' ufs [AT] sapo [DOT] pt --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-discuss?hl=en -~----------~----~----~----~------~----~------~--~---
