[Templates] Any outstanding patches/issues for TT2?

Bill Moseley moseley at hank.org
Tue Jun 10 15:36:17 BST 2008


On Tue, Jun 10, 2008 at 09:12:57AM +0100, Andy Wardley wrote:
> Morning All,

Morning Andy!

Did the ENCODING provider option ever get documented?

    return $self->{ ENCODING }
        ? Encode::decode( $self->{ ENCODING }, $string )
        : $string;

Something like:

=item ENCODING

If set, templates read from a file handle or filename are decoded
using the encoding specified unless a BOM is found on the template.
If a BOM is found and the encoding can be determined that encoding is
used.

Since templates are always encoded, you should always specify
ENCODING to decode into Perl's internal form.




-- 
Bill Moseley
moseley at hank.org
Sent from my iMutt




More information about the templates mailing list