On Apr 30, 2006, at 6:55 PM, Jamie Wilkinson wrote: > Just out of curiousity's sake, how much does the Pylons template > change > between versions? (How much has it changed with the impending 0.9 > release > from 0.8?)
0.8.1 will be out first, but the template so far doesn't appear to have any changes. The paster command to install the Javascripts for WebHelpers would take a directory option, so it can be easily used with any framework, like: paster install-scriptaculous yourproj/public > See, it seems to me that there's going to be newer code in the > template that > uses newer features of Pylons, and that means looking at the > template and > merging that code into my own; if a newer webhelpers comes with some > javascript that fixes bugs from a previous release, I'd like to > have that > just work with an upgrade rather than having to remember to copy it > in. > It's a separate library, not my own, so I don't think it belongs in my > source tree. Yes, that makes sense, though it also leaves you in a position where a Javascript library might be updated in a way that breaks functioning against some specific Javascript call you make somewhere. If the Javascript files are in your project, you have full control over when they're upgraded, though it means if WebHelpers gets an update that requires the new Javascripts..... it breaks till your project gets updated. Hmm, you convinced me. :) I'm now with you in favor of a middleware that brings in the Javascript files, and a little function helper like: javascript_includes() For use in templates that spits out the Javascript <link> tags with the assumption you're using the middleware. Cheers, Ben --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
