> def render(template, extra_vars=None, ...): > if extra_vars is not None: > for f in g.variable_providers: > f(extra_vars) > return old_render(template, extra_vars, ...)
I'd just pull them in in get_tg_vars() in render.py, and add them to the "root_vars" dictionary that is returned by that function. That way we don't have to wrap anything. --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
