package Template::Plugin::HTML::Prototype;
use strict;
use warnings;
our $VERSION = '0.01';
use base 'Template::Plugin';
use HTML::Prototype;
sub new($$@) {
my ($prot, $context, @params) = @_;
return new HTML::Prototype(@params);
}
1;
__END__
=head1 NAME
Template::Plugin::HTML::Prototype - Template Toolkit Plugin for the Prototype Library
=head1 SYNOPSIS
In a Template:
[% USE proto = HTML::Prototype %]
[% proto.define_javascript_functions %]
[% proto.form_remote_tag(...) %]
[% proto.link_to_function(...) %]
[% proto.link_to_remote(...) %]
[% proto.observe_field(...) %]
[% proto.observe_form(...) %]
[% proto.periodically_call_remote(...) %]
[% proto.submit_to_remote(...) %]
=head1 DESCRIPTION
This module provides a simple interface to the Prototype JavaScript OO library for use in the Template Toolkit.
It directly returns a L object, so you can call all methods there.
=head1 SEE ALSO
L, L
L
=head1 AUTHOR
Bernhard Bauer, Ebauerb@in.tum.de
=head1 COPYRIGHT AND LICENSE
Copyright 2005 by Bernhard Bauer
This library is free software; you can redistribute it and/or modify
it under the same terms as Perl itself.
=cut