Catalyst::Plugin::Prototype - Plugin for Prototype
# use it use Catalyst qw/Prototype/; # ...add this to your tt2 template... [% c.prototype.define_javascript_functions %] # ...and use the helper methods... <div id="view"></div> <textarea id="editor" cols="80" rows="24"></textarea> [% uri = base _ 'edit/' _ page.title %] [% c.prototype.observe_field( 'editor', uri, { 'update' => 'view' } ) %]
Some stuff to make Prototype fun.
This plugin replaces Catalyst::Helper::Prototype.
Returns a ready to use L<HTML::Prototype> object.
Catalyst::Manual, Catalyst::Test, Catalyst::Request, Catalyst::Response, Catalyst::Helper
Sebastian Riedel, sri@oook.de
sri@oook.de
This library is free software . You can redistribute it and/or modify it under the same terms as perl itself.
To install Catalyst::Plugin::Prototype, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Catalyst::Plugin::Prototype
CPAN shell
perl -MCPAN -e shell install Catalyst::Plugin::Prototype
For more information on module installation, please visit the detailed CPAN module installation guide.