incubator-odf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From w...@apache.org
Subject svn commit: r1166272 - in /incubator/odf/site/trunk/lib: path.pm view.pm
Date Wed, 07 Sep 2011 17:16:36 GMT
Author: wave
Date: Wed Sep  7 17:16:36 2011
New Revision: 1166272

URL: http://svn.apache.org/viewvc?rev=1166272&view=rev
Log:
Remove unneeded html_page proc. Later plan to add wrapping for javadoc. This will use a different
pattern and view.

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

Modified: incubator/odf/site/trunk/lib/path.pm
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/lib/path.pm?rev=1166272&r1=1166271&r2=1166272&view=diff
==============================================================================
--- incubator/odf/site/trunk/lib/path.pm (original)
+++ incubator/odf/site/trunk/lib/path.pm Wed Sep  7 17:16:36 2011
@@ -4,7 +4,6 @@ package path;
 
 our @patterns = (
 	[qr!\.mdtext$!, single_narrative => { template => "single_narrative.html" }],
-#    [qr!\.html$!, html_page => { template => "html_page.html" }],
 ) ;
 
 # for specifying interdependencies between files

Modified: incubator/odf/site/trunk/lib/view.pm
URL: http://svn.apache.org/viewvc/incubator/odf/site/trunk/lib/view.pm?rev=1166272&r1=1166271&r2=1166272&view=diff
==============================================================================
--- incubator/odf/site/trunk/lib/view.pm (original)
+++ incubator/odf/site/trunk/lib/view.pm Wed Sep  7 17:16:36 2011
@@ -57,38 +57,6 @@ sub single_narrative {
     return Template($template)->render(\%args), html => \%args;
 }
 
-# This view is used to wrap html.  It takes a
-# 'template' argument and a 'path' argument.
-# Assuming the path ends in foo.html, any files
-# like foo.page/bar.mdtext will be parsed and
-# passed to the template in the "bar" (hash)
-# variable.
-
-sub html_page {
-    my %args = @_;
-    my %styleargs = @_;
-    my $file = "content$args{path}";
-    my $template = $args{template};
-    $args{breadcrumbs} = breadcrumbs($args{path});
-
-    read_text_file $file, \%args;
-
-    my $page_path = $file;
-    $page_path =~ s/\.[^.]+$/.page/;
-    if (-d $page_path) {
-        for my $f (grep -f, glob "$page_path/*.mdtext") {
-            $f =~ m!/([^/]+)\.mdtext$! or die "Bad filename: $f\n";
-            $args{$1} = {};
-            read_text_file $f, $args{$1};
-        }
-    }
-
-    $args{header} = `sed -n '/<[Hh][Ee][Aa][Dd]>/,/<\\/[Hh][Ee][Aa][Dd]>/p' ${file}
| sed -e '1s/.*<[Hh][Ee][Aa][Dd]>//' -e 's/<\\/[Hh][Ee][Aa][Dd]>.*//'`;
-    $args{content} = `sed -n '/<[Bb][Oo][Dd][Yy]/,/<\\/[Bb][Oo][Dd][Yy]>/p' ${file}
| sed -e '1s/.*<[Bb][Oo][Dd][Yy]//' -e "s/<\\/[Bb][Oo][Dd][Yy]>.*//"`;
-
-    return Template($template)->render(\%args), html => \%args;
-}
-
 sub sitemap {
     my %args = @_;
     my $template = "content$args{path}";



Mime
View raw message