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