List Info

Thread: Catalyst::View::Templated




Catalyst::View::Templated
country flaguser name
United States
2007-08-18 20:31:32
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->)
* 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:eclare
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




_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

Re: Catalyst::View::Templated
country flaguser name
United States
2007-08-19 00:35:11
Jonathan Rockway wrote:
> and I'll probably convert ClearSilver over tonight
also.

   The uploaded file
   
       Catalyst-View-ClearSilver-0.02.tar.gz
   
   has entered CPAN as
   
      file:
$CPAN/authors/id/J/JR/JROCKWAY/Catalyst-View-ClearSilver-0.0
2.tar.gz
      size: 4815 bytes
      md5: 835407536b0e45d8655d3acd7d83d708


This release isn't installable from the CPAN shell (since
nobody on the
Catalyst team has permission to use the namespace), but it
fixes all
known bugs and adds all of the standard Templated features
(and some
tests).  Please test and let me know what else needs to be
fixed.

Regards,
Jonathan Rockway


_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

Re: Catalyst::View::Templated
country flaguser name
United States
2007-08-19 00:39:03
I think, but not positive, you can still install from the
shell  
thusly (once it hits your mirrors):

   install
J/JR/JROCKWAY/Catalyst-View-ClearSilver-0.02.tar.gz

Just won't index as the current/default.

-Ashley

On Aug 18, 2007, at 10:35 PM, Jonathan Rockway wrote:

> id/J/JR/JROCKWAY/Catalyst-View-ClearSilver-0.02.tar.gz


_______________________________________________
List: Catalystlists.rawmode.org
Listinfo: ht
tp://lists.rawmode.org/mailman/listinfo/catalyst
Searchable archive: http://www.mail-
archive.com/catalystlists.rawmode.org/
Dev site: http://dev.catalyst.per
l.org/

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )