perl-docs-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stas Bekman <s...@stason.org>
Subject Re: [PATCH] Implement <head> elements moving in DocSet
Date Sat, 15 Jun 2002 16:21:42 GMT
Per Einar Ellefsen wrote:

> Ok, finally it became:
> head => {
>  meta => {
>    name => {
>        author => '...',
>        classification => '...',
>    },
>    http-equiv => {
>        'Content-type' => 'text/html',
>     },
> Makes the template simpler, and still gets all the info.
> 
> I didn't store the description, I did as before with doc.meta.abstract, 
> but passed it through the "|html" filter.
> 
>> Anyway, we're along the same lines...I'll make it work soon :)
> 
> 
> Ok, now it works!

Very nice!

Can you please repost (just to me) as an attachment? the diff is 
mangled. I'll test and commit it to docset and resync with the site.

> Please test it. You can try this patch to 404.html which will utilize 
> those features:
> 
> Index: src/404.html
> ===================================================================
> RCS file: /home/cvs/modperl-docs/src/404.html,v
> retrieving revision 1.1
> diff -u -r1.1 404.html
> --- src/404.html        5 Jan 2002 19:21:48 -0000       1.1
> +++ src/404.html        15 Jun 2002 12:48:41 -0000
> @@ -1,6 +1,11 @@
>  <html>
>  <head>
>  <title>File not found!</title>
> +<base href="http://perl.apache.org/release/">
> +<meta name="description" content="foo">
> +<meta http-equiv="Content-type" content="text/html">
> +<meta name="author" content="me">
> +<link rel="stylesheet" href="style.css">
>  </head>
>  <body>
> 
> That's about it.
> 
> The only problem is that with the <base> tag of 
> perl.apache.org/release/, all links in the menu will then point to 
> perl.apache.org/release/, and not to the mirror. Might it be an idea to 
> add something to config.cfg specifying the Base URL (optional)?

true, but let's deal with that when the need comes if it comes. We need 
to add to docset some abstract way to propogate any kind of data from 
the config files to the templates. Otherwise the DocSet becomes too much 
  into the implementation of site and not general purpose framework.

> By the way, is the template-docset list supposed to be the place to 
> discuss DocSet? I checked the archive and apart from your announces it 
> seems a little empty :)

I guess when DocSet is released on CPAN it'll get more traffic. But 
somebody has to start discussing things ;) Andy Wardley is interested 
(we have discussed this issue a lot before DocSet was born) but he is 
too busy ;)

__________________________________________________________________
Stas Bekman            JAm_pH ------> Just Another mod_perl Hacker
http://stason.org/     mod_perl Guide ---> http://perl.apache.org
mailto:stas@stason.org http://use.perl.org http://apacheweek.com
http://modperlbook.org http://apache.org   http://ticketmaster.com


---------------------------------------------------------------------
To unsubscribe, e-mail: docs-dev-unsubscribe@perl.apache.org
For additional commands, e-mail: docs-dev-help@perl.apache.org


Mime
View raw message