]> git.decadent.org.uk Git - maypole.git/blobdiff - lib/Maypole/View/Base.pm
Added Maypole::Config, and changed other classes to reflect that.
[maypole.git] / lib / Maypole / View / Base.pm
index 61c887d3ef0bba3c91922a06ec66de8eb5cecc9c..fdc66298adf38c5db34cb02258197ff5a2e441dd 100644 (file)
@@ -8,7 +8,7 @@ sub new { bless {}, shift }    # By default, do nothing.
 
 sub paths {
     my ( $self, $r ) = @_;
-    my $root = $r->{config}{template_root} || $r->get_template_root;
+    my $root = $r->config->template_root || $r->get_template_root;
     return (
         $root,
         (
@@ -23,7 +23,7 @@ sub paths {
 sub vars {
     my ( $self, $r ) = @_;
     my $class = $r->model_class;
-    my $base  = $r->{config}->{uri_base};
+    my $base  = $r->config->uri_base;
     $base =~ s/\/+$//;
     my %args = (
         request => $r,