Template::Plugin::HTML::Prototype - Template Toolkit Plugin for the Prototype Library


Template-Plugin-HTML-Prototype documentation Contained in the Template-Plugin-HTML-Prototype distribution.

Index


Code Index:

NAME

Top

Template::Plugin::HTML::Prototype - Template Toolkit Plugin for the Prototype Library

SYNOPSIS

Top

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(...) %]

DESCRIPTION

Top

This module provides a simple interface to the Prototype JavaScript OO library for use in the Template Toolkit.

It directly returns a HTML::Prototype object, so you can call all methods there.

SEE ALSO

Top

HTML::Prototype, Template

http://prototype.conio.net

AUTHOR

Top

Bernhard Bauer, <bauerb@in.tum.de<gt>

COPYRIGHT AND LICENSE

Top


Template-Plugin-HTML-Prototype documentation Contained in the Template-Plugin-HTML-Prototype distribution.

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__