You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@lucy.apache.org by ma...@apache.org on 2011/05/31 20:50:43 UTC

[lucy-commits] svn commit: r1129845 - in /incubator/lucy/site/trunk/lib: path.pm view.pm

Author: marvin
Date: Tue May 31 18:50:43 2011
New Revision: 1129845

URL: http://svn.apache.org/viewvc?rev=1129845&view=rev
Log:
Remove unnecessary passthrough filter.

The default behavior of the CMS is to pass through HTML files unaltered.  We
don't need passthrough for anything else yet, either -- so zap it.

Modified:
    incubator/lucy/site/trunk/lib/path.pm
    incubator/lucy/site/trunk/lib/view.pm

Modified: incubator/lucy/site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/site/trunk/lib/path.pm?rev=1129845&r1=1129844&r2=1129845&view=diff
==============================================================================
--- incubator/lucy/site/trunk/lib/path.pm (original)
+++ incubator/lucy/site/trunk/lib/path.pm Tue May 31 18:50:43 2011
@@ -9,7 +9,6 @@ use warnings;
 # be passed to the view subroutine.
 
 our @patterns = (
-    [ qr!^/.*\.html$!, passthrough => { type => 'html' } ],
     [ qr!\.mdtext$!, basic => { template => "basic.html" } ],
 );
 

Modified: incubator/lucy/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/lucy/site/trunk/lib/view.pm?rev=1129845&r1=1129844&r2=1129845&view=diff
==============================================================================
--- incubator/lucy/site/trunk/lib/view.pm (original)
+++ incubator/lucy/site/trunk/lib/view.pm Tue May 31 18:50:43 2011
@@ -51,15 +51,6 @@ sub basic {
     return ($rendered, 'html', \%args);
 }
 
-# Relay the page as is.
-sub passthrough {
-    my %args = @_;
-    my $filepath = "content$args{path}";
-    open(my $fh, '<', $filepath) or die "Can't open $filepath: $!";
-    my $content = do { local $/; <$fh> };
-    return ($content, $args{type}, \%args);
-}
-
 sub _breadcrumbs {
     my $path        = shift;
     my @breadcrumbs = (