[Catalyst] Re: Catalyst without template

Matt S Trout dbix-class at trout.me.uk
Thu May 17 22:27:52 GMT 2007


On Thu, May 17, 2007 at 06:07:46PM +0200, Dmitri Pissarenko wrote:
> Hello!
> 
> Thanks all for the answers!
> 
> >Don't do that, it leads to spaghetti. Write your own View class
> >and generate the output from there.
> 
> Is there some example how to write a custom View class?

If this is going to be working with dojo I think you probably just want
View::JSON + $c->stash(current_view => 'JSON');

-- 
      Matt S Trout       Need help with your Catalyst or DBIx::Class project?
   Technical Director    Want a managed development or deployment platform?
 Shadowcat Systems Ltd.  Contact mst (at) shadowcatsystems.co.uk for a quote
http://chainsawblues.vox.com/             http://www.shadowcatsystems.co.uk/ 



More information about the Catalyst mailing list