I have a website which uses autohandlers for formatting. I have a dhandler buried three directories down. Most of the time the dhandler renders content which wants to be wrapped. Occasionally it needs to send a file.
To achieve this I wanted to do something like: $r->conent_type('application/excel'); $m->clear_buffer; print $content; $m->flush_buffer; return $m->abort(200); ( or some such ) The content type would force it to be downloaded by the browser. This worked fine until I realised I was throwing the wrapped content at them. ( at which point I started to play with clearing and flushing the buffer and aborting ) Is there a way of doing this I'm missing? I'm considering having the top autohandler call $m->scall_method('dont_wrap') and return $m->request_comp if it returns true, but that's intrusive and not nice. Anyone got any other ideas? (Catalyst isn't an option, too much of a change. I'm very pro catalyst, as many of you know) Gareth Kirwan Programming & Development, Thermeon Europe Ltd, [EMAIL PROTECTED] Tel: +44 (0) 1293 864 303 Thermeon Europe e-Card: gbjk ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ Mason-users mailing list Mason-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mason-users