Skip Menu |
 

This queue is for tickets about the CGI-Application-Plugin-AnyTemplate CPAN distribution.

Report information
The Basics
Id: 34791
Status: resolved
Priority: 0/
Queue: CGI-Application-Plugin-AnyTemplate

People
Owner: Nobody in particular
Requestors: shmuelfomberg [...] gmail.com
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.17
Fixed in: 0.18



Subject: Processing UTF-8 tamplates with the TT driver
Download (untitled) / with headers
text/plain 253b
I'm using your plugin to write a non-English website. The templates are encoded in UTF-8. TT itself have a parameter binmode => ':utf8' to tell it to load the template as utf8. Can you make a way to tell your driver to tell TT do it? Thanks, Shmuel.
From: mag-perl [...] occamstoothbrush.com
Download (untitled) / with headers
text/plain 615b
On Wed Apr 09 14:20:37 2008, SEMUELF wrote: Show quoted text
> I'm using your plugin to write a non-English website. The templates
are Show quoted text
> encoded in UTF-8. > TT itself have a parameter binmode => ':utf8' to tell it to load the > template as utf8. > Can you make a way to tell your driver to tell TT do it? > > Thanks, > Shmuel.
Hi Shmuel, AnyTemplate should pass unknown parameters directly to the TT constructor. Can you try this? $self->template->config( # My::Project is used type => 'TemplateToolkit', # cached TT object TemplateToolkit => { binmode => ':utf8' }, );
From: owner [...] semuel.co.il
Download (untitled) / with headers
text/plain 301b
Thanks for the quick reply. I found that TT handles files as utf8 if I write: $self->template->config( default_type => 'TemplateToolkit', TemplateToolkit => { ENCODING => 'UTF-8' } ); the encoding=>':utf8' does not seen to work. Can you please document it in the driver pod? Thanks, Shmuel.
Download (untitled) / with headers
text/plain 233b
Hi Shmuel, After many months, I've updated the documentation of CAP::AnyTemplate's TemplateToolkit driver module as you suggested. The new docs will be in version 0.18. Thank you for your report and your patience! :) Michael


This service is sponsored and maintained by Best Practical Solutions and runs on Perl.org infrastructure.

Please report any issues with rt.cpan.org to rt-cpan-admin@bestpractical.com.