NAME
Template::Plugin::Unicode - unicode chars via codepoint
VERSION
version 0.01
SYNOPSIS use Template; my $tt = Template->new; my $template = '[% USE Unicode %][% Unicode.codepoint2char('0x263A') %]'; my $smiley; $tt->process( \$template, {}, \$smiley ) or die $tt->error(); say $smiley;
DESCRIPTION Insert characters into your text via unicode codepoint.
SEE ALSO
Another way of inserting characters via unicode codepoints is by adding a sub ref to the \%vars hashres passed to process().
my $u = sub { chr(hex($_[0])) };
my $text = '[% u('0x263a') %]';
process(\$text, { u => sub {} }, $output, %options)
AUTHOR
David Schmidt <davewood@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2016 by David Schmidt.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.