On Tuesday, July 20, 2010 15:38:24 Guyren G Howe wrote:
> On Jul 20, 2010, at 4:19 , Diez B. Roggisch wrote:
> > I don't get it. Why don't you just return d? Everything that is supposed
> > to be template-only, e.g. widgets or helper functions or no idea what
> > else is supposed to go to the tmpl_context anyway. Precisely because
> > otherwise rendering json would mean rendering cruft.
> 
> If I return d and it's a dictionary, I don't know how to refer to it in the
> template.

By the keys of the dictionary. As you already do, with an unneeded layer of 
indirection. 

Diez

-- 
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