cat <<EOF
<!Doctype HTML>
-<html>
- <head>
- <meta name="viewport" content="width=device-width">
- <title>${TITLE:-${PAGE}}</title>
- <link rel="stylesheet" href="?static=common.css" />
- </head>
- <body>
- $([ -x "${BODY}" ] && . "${BODY}" || printf %s Error)
- </body>
-</html>
+<html><head>
+ <meta name="viewport" content="width=device-width">
+ <link rel="stylesheet" href="?static=common.css" />
+ <title>${TITLE:-${PAGE}}</title>
+</head>
EOF
+printf '<body class="%s">' "${PAGE}"
+
+[ -x "${BODY}" ] && . "${BODY}" || printf %s Error
+
+printf '</body></html>'
+
# vi:set filetype=html: