diff options
author | Jesse Luehrs <doy@tozt.net> | 2011-02-14 01:00:04 -0600 |
---|---|---|
committer | Jesse Luehrs <doy@tozt.net> | 2011-02-14 01:00:04 -0600 |
commit | 47bbca48d0b06b978351ebaedd52c8669fec3699 (patch) | |
tree | b461a05f77c76f3bef1d99dd100b0d938d47ea38 /lib | |
parent | a9fee5c8d349795d55ca01821420f198a1e07f3b (diff) | |
download | ox-view-tt-47bbca48d0b06b978351ebaedd52c8669fec3699.tar.gz ox-view-tt-47bbca48d0b06b978351ebaedd52c8669fec3699.zip |
ox takes care of this now
Diffstat (limited to 'lib')
-rw-r--r-- | lib/OX/View/TT.pm | 13 |
1 files changed, 2 insertions, 11 deletions
diff --git a/lib/OX/View/TT.pm b/lib/OX/View/TT.pm index e40f8f8..2dfd692 100644 --- a/lib/OX/View/TT.pm +++ b/lib/OX/View/TT.pm @@ -34,21 +34,12 @@ has 'tt' => ( } ); -sub _normalize_web_base { - my ($self, $r) = @_; - my $base = $r->script_name; - $base = '/' . $base unless $base =~ /^\//; - $base = $base . '/' unless $base =~ /\/$/; - $base; -} - sub _build_template_params { my ($self, $r, $params) = @_; - my $BASE = $self->_normalize_web_base( $r ); return +{ r => $r, - base => $BASE, - uri_for => sub { $BASE . $r->uri_for( $_[0] ) }, + base => $r->script_name, + uri_for => sub { $r->uri_for( $_[0] ) }, %{ $params || {} } } } |