<import src="macro/util"/>


*sigh* :(


plain_header [title]
Create a plain and ugly html header (with an optional title).

Create a plain and ugly html footer.

access_page $access, $title, \&body
Create a simple access-protected page. $access is the required access level (editform in the macro manpage), $title is the page title. The body argument must be a function reference. If the uer has the required access right a plain page is created (using the functions above) and the body function is called. Otherwise the user is informed of his missing rights and gets the opportunity to log-in.

Use it like this:

   <:access_page "app_access", "Main Page", sub {:>
      <h1>Main Page</h1>
      You are logged in now ;)


 Marc Lehmann <>