Pedro Algarvio, aka, s0undt3ch wrote: > > ----- "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.
It looks like it's in 0.3.2 and probably 0.3.1. I just tested it on a project and it worked. This is the actual setup.cfg I'm using it with: https://svn.openplans.org/svn/TaskTracker/trunk/setup.cfg -- then I run "python setup.py compress_resources". -- Ian Bicking : [EMAIL PROTECTED] : http://blog.ianbicking.org --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
