Difference between revisions of "Layout Page"

From openZIM
Jump to navigation Jump to search
(Created page with '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 speci…')
 
(No difference)

Latest revision as of 16:15, 17 October 2010

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>