Layout Page

From openZIM
Jump to navigation Jump to search

Every ZIM file should have a layout page to define how the full HTML content should look like. It is also used to combine article header and article text.

Please note that specific readers, eg. on mobile phones, will ommit the layout page and just use their own, simplified HTML layout to display the pure article text only.

Global CSS and JavaScript files should be linked within the layout page. All individual header data such as meta tags, article-specific CSS or JavaScript files should go into the article header in the B namespace.

Placeholders

CAUTION: this is in draft status! The placeholders defined here are not yet implemented and might change!


Example

<html>
  <header>
    <%B/<%title%>%>
  </header>

  <body>
    <%A/<%title%>%>
  </body>
</html>