Page Template

The groupserver_email_layout/page page template provides a simple full-page layout for an email notification:

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="context/@@groupserver_email_layout/page">

There are three slots defined by the macro.

metal:fill-slot="title":
The compulsory title of the page. It is always provided by pages that use the standard layouts, and always contains a <title> element. It is normally set to the subject of the email message:
<title metal:fill-slot="title">This is the title</title>
metal:fill-slot="preheader":
Some email clients show a short snippet of text from the email message just below the Subject as a preview. For a normal notification this will usually be the site-name and the header from the body. While ok, notifications can add a preheader that will be hidden in the HTML, but will appear as a preview.
<span metal:fill-slot="preheader">This appears below the Subject</span>
metal:fill-slot="prebody":
The optional content that appears before the header of the page. Used by some pages to emulate the look of an email message by adding false To, From and Subject fields.
metal:fill-slot="body":
The compulsory body of the page.

Example

<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:tal="http://xml.zope.org/namespaces/tal"
      xmlns:metal="http://xml.zope.org/namespaces/metal"
      metal:use-macro="context/@@groupserver_email_layout/page">
  <head>
    <title metal:fill-slot="title">Notification:
      <span tal:replace="view/siteInfo/name">Site</span></title>
  </head>
  <body>
    <div id="a-page" metal:fill-slot="body">
      <p>I am a notification, honest.</p>
    </div><!--a-page-->
  </body>
</html>