| HTML-AjaxTags-TT documentation | Contained in the HTML-AjaxTags-TT distribution. |
HTML::AjaxTags::TT - AjaxTags for Template Toolkit
use HTML::AjaxTags:TT;
Because of the way Template Toolkit handles named parameters when calling functions, HTML::AjaxTags::TT must be used to embed HTML::AjaxTags within a template file.
| HTML-AjaxTags-TT documentation | Contained in the HTML-AjaxTags-TT distribution. |
package HTML::AjaxTags::TT; use strict; use warnings; use HTML::AjaxTags; our $AUTOLOAD; our $VERSION = '0.03'; sub new { my $class = shift; bless { ajax => new HTML::AjaxTags, }, $class; } sub AUTOLOAD { return if $AUTOLOAD =~ /::DESTROY$/; my $self = shift; my $param = shift; my $name = $AUTOLOAD; $name =~ s/.*://; # strip fully-qualified portion $self->{ajax}->$name(%$param); } 1;