comparison Lib/IMPL/Web/TT/Document.pm @ 150:4369d5458bb6

minor fixes
author wizard
date Fri, 20 Aug 2010 08:28:43 +0400
parents 60fd224f3e3c
children eb478083f72b
comparison
equal deleted inserted replaced
149:b04e978d6d5a 150:4369d5458bb6
9 use File::Spec; 9 use File::Spec;
10 use Scalar::Util qw(blessed); 10 use Scalar::Util qw(blessed);
11 use IMPL::Web::TT::Collection; 11 use IMPL::Web::TT::Collection;
12 use IMPL::Web::TT::Control; 12 use IMPL::Web::TT::Control;
13 use Carp; 13 use Carp;
14 use Encode();
14 15
15 BEGIN { 16 BEGIN {
16 private property _provider => prop_all; 17 private property _provider => prop_all;
17 private property _context => prop_all; 18 private property _context => prop_all;
18 public property cache => prop_all; 19 public property cache => prop_all;
75 VARIABLES => { 76 VARIABLES => {
76 document => $this, 77 document => $this,
77 this => $this, 78 this => $this,
78 render => sub { 79 render => sub {
79 $this->_process(@_); 80 $this->_process(@_);
81 },
82 encode => sub {
83 Encode::encode('utf8',shift);
80 } 84 }
81 }, 85 },
82 RECURSION => 1, 86 RECURSION => 1,
83 LOAD_TEMPLATES => [$this->provider] 87 LOAD_TEMPLATES => [$this->provider]
84 ) 88 )