Mercurial > pub > Impl
comparison Lib/IMPL/Web/TT/Document.pm @ 135:5b849974bed8
Added an URL support inside the templates
| author | wizard |
|---|---|
| date | Thu, 24 Jun 2010 02:39:00 +0400 |
| parents | 44977efed303 |
| children | f6af119ac741 |
comparison
equal
deleted
inserted
replaced
| 134:44977efed303 | 135:5b849974bed8 |
|---|---|
| 3 use warnings; | 3 use warnings; |
| 4 | 4 |
| 5 use base qw(IMPL::DOM::Document IMPL::Object::Disposable); | 5 use base qw(IMPL::DOM::Document IMPL::Object::Disposable); |
| 6 use Template::Context; | 6 use Template::Context; |
| 7 use Template::Provider; | 7 use Template::Provider; |
| 8 use Template::Plugin::URL; | |
| 8 use IMPL::Class::Property; | 9 use IMPL::Class::Property; |
| 9 use File::Spec; | 10 use File::Spec; |
| 10 use Scalar::Util qw(blessed); | 11 use Scalar::Util qw(blessed); |
| 11 use IMPL::Web::TT::Collection; | 12 use IMPL::Web::TT::Collection; |
| 12 use IMPL::Web::TT::Control; | 13 use IMPL::Web::TT::Control; |
| 13 use Carp; | 14 use Carp; |
| 15 | |
| 16 $Template::Plugin::URL::JOINT = '&'; | |
| 14 | 17 |
| 15 BEGIN { | 18 BEGIN { |
| 16 private property _provider => prop_all; | 19 private property _provider => prop_all; |
| 17 private property _context => prop_all; | 20 private property _context => prop_all; |
| 18 public property cache => prop_all; | 21 public property cache => prop_all; |
