| Template-HTML documentation | view source | Contained in the Template-HTML distribution. |
Template::HTML::Variable - An "pretend" string that auto HTML encodes
use Template::HTML::Variable;
my $string = Template::HTML::Variable->new('< test & stuff >');
print $string, "\n";
# Produces output "< test & stuff >"
This object provides a "pretend" string to use as part of the Template::HTML Template Toolkit extension.
It automatically stringifies to an HTML encoded version of what it was created with, all the while trying to keep a sane state through string concatinations etc.
http://git.dollyfish.net.nz/?p=Template-HTML
Takes a single argument which is the string to set this variable to
Returns a non HTML-encoded version of the string (i.e. exactly what was passed to the new() function
Returns an HTML encoded version of the string (used by the stringify overloads)
Implementation of overloaded . operator
Implementation of overloaded .= operator
Returns a clone of this variable. (used for the implementation of the overloaded = operator).
Martyn Smith, <msmith@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself, either Perl version 5.8.8 or, at your option, any later version of Perl 5 you may have available.
| Template-HTML documentation | view source | Contained in the Template-HTML distribution. |