defining functions is surprisingly expensive!

master
eric 2021-04-23 19:01:43 -04:00
parent 74dac78288
commit 6991d70eb3
5 changed files with 4 additions and 14 deletions

View File

@ -145,7 +145,6 @@
${site_footer ()} ${site_footer ()}
${site_top ()} <xi:include href="menu.html" />
</body> </body>
</html> </html>

View File

@ -66,8 +66,7 @@ Gutenberg metadata much faster than by scraping.
<body> <body>
<div class="container"> <div class="container">
${site_top()} <xi:include href="menu.html" />
<div class="page_content" id="content" itemscope="itemscope" itemtype="http://schema.org/Book" i18n:comment="On the 'bibrec' page."> <div class="page_content" id="content" itemscope="itemscope" itemtype="http://schema.org/Book" i18n:comment="On the 'bibrec' page.">
<div class="breadcrumbs noprint"> <div class="breadcrumbs noprint">

View File

@ -43,7 +43,7 @@
</head> </head>
<body> <body>
<div class="container"> <div class="container">
${site_top()} <xi:include href="menu.html" />
<div id="page_content" i18n:comment="error page." style="margin-top: 4em"> <div id="page_content" i18n:comment="error page." style="margin-top: 4em">
<h1>${os.message}</h1> <h1>${os.message}</h1>

View File

@ -134,7 +134,7 @@ which contains *all* Project Gutenberg metadata in one RDF/XML file.
${site_footer ()} ${site_footer ()}
${site_top ()} <xi:include href="menu.html" />
</body> </body>
</html> </html>

View File

@ -115,14 +115,6 @@
</div> </div>
</py:def> </py:def>
<py:def function="site_top">
<xi:include href="menu.html" />
</py:def>
<py:def function="advsearch">
<xi:include href="advsearch.html" />
</py:def>
<py:def function="site_footer"> <py:def function="site_footer">
<div class="footer" i18n:comment="On the footer of every page."> <div class="footer" i18n:comment="On the footer of every page.">
<xi:include href="footer.html" /> <xi:include href="footer.html" />