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. If I return a hash with a single entry, so I can refer to it by the key in the template, my JSON has an extraneous layer. -- 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.

