A while ago, we talked about creating a View base class that would provide all the common features needed when dealing with template-engine-based views. Well, that's on CPAN now as Catalyst::View::Templated.
Here's a quick overview of the features; see the POD for all the details: * provides render and process, you only need to implement a simple _render method * provides template-finding logic ($c->view->template or $c->stash->template or $c->action. $self->{TEMPLATE_EXTENSION}) * handles exceptions (you don't have to worry about Catalyst, just die and The Right Thing Will Happen) * slightly cleaner API, instead of $c->view->render($c, $template), it's $c->view->render($template) (although the first still works) * common config elements; CATALYST_VAR, TEMPLATE_EXTENSION, CONTENT_TYPE, and INCLUDE_PATH * process sets the charset *correctly*, not incorrectly like many Views :) * lots of tests This is all still somewhat experimental, so if you don't like something, let me know. For now, CPAN has Template::Declare and MicroMason which use this API, and I'll probably convert ClearSilver over tonight also. I tried TT, but it's too messy for me to maintain backcompat... so it would be nice if someone else would tackle that :). I haven't looked at Mason yet, but will. Repository is at git.jrock.us until I move it to the Catalyst git server. Regards, Jonathan Rockway
signature.asc
Description: OpenPGP digital signature
_______________________________________________ List: Catalyst@lists.rawmode.org Listinfo: http://lists.rawmode.org/mailman/listinfo/catalyst Searchable archive: http://www.mail-archive.com/catalyst@lists.rawmode.org/ Dev site: http://dev.catalyst.perl.org/