Hi all,

I'm trying to do something like this but don't know how to obtain a
reference to the already configured genshi loader instance.

@expose('json')
def foo(self):
    data = get_some_data()

    tg_loader = some_magic_tg_code() #Please help with this

    tmpl = tg_loader.load("mytemplate.tmpl")
    return {'html': tmpl.generate(data=data).render('html')}



Thanks for your help,
Tony

-- 
You received this message because you are subscribed to the Google Groups 
"TurboGears" 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?hl=en.

Reply via email to