## API
-`htmlPage(pagePathLevel, ctx, options, main = [])`
+- `initContext(ctx)`
+- `htmlPage(pagePathLevel, ctx, options, main = [])`
+- `dateOrNot(date, otherwise)`
+- `dateFormat(date, pInf nInf, otherwise)`
+- `timeElement(date, options)`
+- `secondsToPeriod(seconds)`
+- `indented(intent, list)`
+- `UL(items, indent, attributes, itemAttributesGenerator)`
+- `OL(items, indent, attributes, itemAttributesGenerator)`
+- `LI(item, indent, attributes)`
### Context
- `ctx.session.authenticatedIdentifier`
- `ctx.session.authenticatedProfile`
-If either of these are present, a navigation link is added to the page header allowing the user to log out.
-The link will point relatively to `/admin/logout`.
+If either of these are present, navigation links are added to the page header allowing the user to manage their account or log out.
+The links will point relatively to `/admin/settings` and `/admin/logout`, respectively.
- `ctx.url`
- `ctx.notifications`
Lists of errors and notices to show at top of page, before main content.
+`initContext` will create the arrays.
### Options
- `options.notificationHeading` - h2 for notice section
- `options.notificationContent` - additional information included ahead of list of notices
- `options.`
+
+## Tests
+
+`LintHtml` class is a simple wrapper around html-validate package which can report issues with generated html strings.