mirror of
https://github.com/python/cpython.git
synced 2025-07-23 11:15:24 +00:00
Add support for the "Aesop Meta Tag". Not widely used, but not a bad idea,
either.
This commit is contained in:
parent
cc8fe0407a
commit
e03e1fe5cc
4 changed files with 31 additions and 0 deletions
|
@ -37,6 +37,8 @@ $HAVE_MODULE_INDEX = 0;
|
|||
$HAVE_GENERAL_INDEX = 0;
|
||||
$HAVE_TABLE_OF_CONTENTS = 0;
|
||||
|
||||
$AESOP_META_TYPE = 'information';
|
||||
|
||||
|
||||
# A little painful, but lets us clean up the top level directory a little,
|
||||
# and not be tied to the current directory (as far as I can tell). Testing
|
||||
|
@ -639,6 +641,8 @@ sub make_head_and_body {
|
|||
, "<html>\n<head>\n<title>", $title, "</title>\n"
|
||||
, &meta_information($title)
|
||||
, $MY_PARTIAL_HEADER
|
||||
, ($AESOP_META_TYPE eq '' ? ''
|
||||
: "\n<meta name='aesop' content='$AESOP_META_TYPE'>")
|
||||
, "\n</head>\n<body$body>");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue