incubator-odf-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Fisher <dave2w...@comcast.net>
Subject Re: svn commit: r1166234 - in /incubator/odf/site/trunk/lib: path.pm view.pm
Date Wed, 07 Sep 2011 15:51:19 GMT
Hi Devin and Yegor,

I will need to spend some time making the html_page procedure work with a frameset. It won't
be immediate.

Until then I have added the html pattern back as a comment.

Regards,
Dave

On Sep 7, 2011, at 8:42 AM, wave@apache.org wrote:

> Author: wave
> Date: Wed Sep  7 15:42:27 2011
> New Revision: 1166234
> 
> URL: http://svn.apache.org/viewvc?rev=1166234&view=rev
> Log:
> commenting out the html_page until there is time to fix it for Javadocs. Note that other
pages will lose the incubator branding.
> 
> 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=1166234&r1=1166233&r2=1166234&view=diff
> ==============================================================================
> --- incubator/odf/site/trunk/lib/path.pm (original)
> +++ incubator/odf/site/trunk/lib/path.pm Wed Sep  7 15:42:27 2011
> @@ -4,6 +4,7 @@ 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=1166234&r1=1166233&r2=1166234&view=diff
> ==============================================================================
> --- incubator/odf/site/trunk/lib/view.pm (original)
> +++ incubator/odf/site/trunk/lib/view.pm Wed Sep  7 15:42:27 2011
> @@ -83,8 +83,8 @@ sub html_page {
>         }
>     }
> 
> -    $args{header} = `sed -n '/<head>/,/<\\/head>/p' ${file} | sed -e '1s/.*<head>//'
-e 's/<\\/head>.*//'`;
> -    $args{content} = `sed -n '/<body>/,/<\\/body>/p' ${file} | sed -e '1s/.*<body>//'
-e "s/<\\/body>.*//"`;
> +    $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;
> }
> 
> 


Mime
View raw message