Static Content

From release 32, static pages no longer contain template code. A typical static page consists of just the content of that page wrapped in a "bare-bones" HTML document, thus:

<html>
<head>
<title>A Sample Static Page</title>
<meta name="navigation" content="Sample Static Page" />
<body>

<!-- Start of page content -->

<h2>A Sample Static Page</h2>

<p>Some text, images, tables, etc.</p>

<!-- End of page content -->

</body>
</html>

Note that a <title> element is required, as this is parsed by the wrapper code and inserted into the finished HTML document. The <meta> tag is optional, but if you want to add files to the Information, this tag will allow autogeneration of the breadcrumb navigation at the top of the page.

The top-level header in the document should be an <h2> tag, since <h1> is used for the 'Ensembl' title in the template.

All static pages live in /htdocs and are processed through mod_perl. Standard Apache behaviour such as SSI (server-side includes) is simulated by Ensembl modules. For example, to include an HTML file in a static page, use the following syntax:

[[INCLUDE::my_species/my_file.html]]

Note that in this example, the directory 'my_species' is directly under the document root (i.e. htdocs).