def rstflatpage(context):
    """
    The core content of the restructuredtext flatpage with history, editing,
    etc. for use in your 'flatpages/default.html' or custom template.

    Example:
    ::

        <html><head><title>{{ flatpage.title }}</title></head>
              <body>{% load restructuredtext %}{% rstflatpage %}</body>
        </html>


    This will inject one of 6 different page contents:

    * Just the flatpage.content for normal flatpages (so templates can be
      used with normal flatpages).
    * A custom 404 page (with optional create/restore form).
    * View current (with optional edit/history/delete form).
    * View version (with optional history/current/revert form).
    * Edit form (with preview/save/cancel).
    * History listing.
    """
    return context