Subject: | [WISH] binmode => :utf8 argument to process() |
TT supports an optional argument to process() that allows the programmer
to specify a binmode for the opened files. The following example comes
from the Template.pm POD:
$tt->process($infile, $vars, $outfile, binmode => ':utf8')
|| die $tt->error(), "\n";
Currently, Catalyst::View::TT offers no way to pass this argument (as
far as I can tell) so I have to put a UTF8 BOM (\x{ef}\x{bb}\x{bf}) at
the beginning of every .tt file that contains non-ASCII. Some text
editors don't preserve this BOM, so I'd like an alternative.
Thanks,
Chris