Diez B. Roggisch schrieb: > Manu Hack schrieb: >> I have successfully constructed an example following the following doc: >> >> http://docs.turbogears.org/1.0/GenerateFigures#preview >> >> Now what I want to do is to have the figure in my page with tag <img> >> instead of displaying it in a separate page. >> The above code would run okay, but I don't know how I can display the >> the "rendered_fig" in the template figure.html. Thanks a lot! > > You need to have two controller methods. One that like above creates an > image, and returns the raw data (no templating, no nothing). I don't > know out of my head how to do that, but I guess pylons docs will have an > example.
Apparently he is using TG 1.x (at least he references a 1.0 doc). There is a page with a brief description how to return a dynamic image from a controller: http://docs.turbogears.org/1.0/ServeDynamicImage Chris --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---

