[Catalyst] Catalyst::Plugin::Prototype

Ash Berlin ash_cpan at firemirror.com
Fri Oct 12 13:06:11 GMT 2007


Stefan Kühn wrote:
> The documentation of Catalyst::Plugin::Prototype is a rather thin.
> Only one example of a method is given:
>    [% c.prototype.observe_field( 'editor', uri, { 'update' => 'view' } ) %]
> 
> Is it correct that Catalyst::Plugin::Prototype uses and that the
> methods can be determined from
>    perldoc Catalyst::Plugin::Prototype  ?
> 
> Or how can i find it's methods?
> 
> Stefan

Dont use this plugin. It is one of the more stupid plugins. The entirety
of the code is this:

package Catalyst::Plugin::Prototype;

use strict;
use base 'Class::Data::Inheritable';
use HTML::Prototype;

our $VERSION = '1.33';

__PACKAGE__->mk_classdata('prototype');
eval { require HTML::Prototype::Useful; };

if ( $@ ) {
    __PACKAGE__->prototype( HTML::Prototype->new );
} else {
    __PACKAGE__->prototype( HTML::Prototype::Useful->new );
}

Just create a HTML::Prototype yourself and be done with it if you want
to use Prototype.

-ash




More information about the Catalyst mailing list