> > On Jan 29, 2008 12:49 AM, Alberto Valverde <[EMAIL PROTECTED]> wrote: >> >> Mike Orr wrote: >> > (...) >> > >> > ToscaWidgets has too many dependencies; it almost doubles the size of >> Pylons. Plus I understand the TW team wants to get rid of a couple of >> those dependencies, which Pylons has already jettisoned. lxml is >> required for TW's Javascript features. >> >> Correct. TW wants to get rid of all it's C dependencies, currently the >> only "hard" ones are RuleDispatch and PyProtocols. >> >> You *don't need* lxml to inject javascript and css. The "lxml method" is >> an experimental approach which I will probably deprecate and remove from >> the codebase someday because it's more trouble than it's worth (a C >> dependency plus doctype mangling). I though I made this clear in the >> tutorial... [1]. > > It sounded like the injection approach was "not so experimental" and > going to be the future recommendation, so that's what I tried.
I wanted it to be the recommended approach for its convenience but the C dependency and the fact that it forces all rendered pages to be HTML (not XHTML) have made me change my mind. My fault then for not making it clear enough. Being experimental is clearly stated in the module's, tw.resource_injector, docstring though (I know... who reads those nowadays? ;) > I > didn't consult the other tutorials because they're all obsolete in > different ways (Myghty, etc). As for not injecting Javascript and > doing it myself, I don't know how to do that. You mean copying the > Javscripts to my public directory? Yeah, and including the <script> tags too and initializing any js code. Not very useful really now in thinking about it in retrospect... could only make sense if you're sure that now widget is using JS, but that would defeat the component nature of widgets. Alberto --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "pylons-devel" group. To post to this group, send email to pylons-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/pylons-devel?hl=en -~----------~----~----~----~------~----~------~--~---