Re: [Catalyst] How to print/display some data in an end action

2008-05-05 Thread Emmanuel Quevillon
Mitch Jackson wrote: Emmanuel, Your object is going to request the svg file from your display method, just like a web browser would. When catalyst delivers the file, it needs to look like an SVG to the browser. Some browsers look for different things. http://www.getsvg.com/implementation_issue

Re: [Catalyst] How to print/display some data in an end action

2008-04-30 Thread Mitch Jackson
Emmanuel, You can store the data into the stash, and create a template for it. Don't forget to set your content type, or whatever is receiving the XML may not like it. I also prefer to send a filename. sub display : Local : Args(1) { my $t = $object->display_graph(); $c->stash->{xm

Re: [Catalyst] How to print/display some data in an end action

2008-04-30 Thread Emmanuel Quevillon
Andreas Marienborg wrote: On Apr 30, 2008, at 11:51 AM, Emmanuel Quevillon wrote: Hi, I'd like to incorporate an action into an tag that only prints some data (XML SVG). I have an action in a controller Foo that do this : sub display : Local : Args(1) { my $t = $object->display

Re: [Catalyst] How to print/display some data in an end action

2008-04-30 Thread Andreas Marienborg
On Apr 30, 2008, at 11:51 AM, Emmanuel Quevillon wrote: Hi, I'd like to incorporate an action into an tag that only prints some data (XML SVG). I have an action in a controller Foo that do this : sub display : Local : Args(1) { my $t = $object->display_graph(); $c->detach('F

[Catalyst] How to print/display some data in an end action

2008-04-30 Thread Emmanuel Quevillon
Hi, I'd like to incorporate an action into an tag that only prints some data (XML SVG). I have an action in a controller Foo that do this : sub display : Local : Args(1) { my $t = $object->display_graph(); $c->detach('Foo', 'end', [$t]); } sub end : Private { my($self, $