On Monday 26 January 2009 17:57:34 Mark Ramm wrote: > > There isn't but it is very easy to implement it on a per-project basis. > > The easiest way to include the in *every* html page is to override > > BaseController in yourapp.lib.base and add this in the __call__ method > > before delegating to super: > > > > for widget in include_widgets: > > widget.inject() > > > > I guess that if TG2 doesn't mind to couple a little bit more with TW the > > a 'include_widgets' attribute could be added to the config and the above > > line included in TGController so users don't have to do it explicitly. > > Or perhaps it could be added to the quickstart template, or... > > I think we just need to document this better. Because in most cases > you only want to inject a single library widget into every page so it > can be even easier, you just add: > > mywidget.inject() > > in your BaseController's __call__
Sounds good enough for me. How can I contribute documentation? I'm having not too much time on my hands, but good docs are cruicial, and as you guys have the coding part covered... Is there anything in the docs how to write them? :) I looked around but didn't find anything. Diez --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "TurboGears Trunk" 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/turbogears-trunk?hl=en -~----------~----~----~----~------~----~------~--~---
