lib/page.js
/**
 * Wrapper for template with a preformatted error message. The message is
 * understood to be a string, but could be HTML if needed
 *
 * @param  {String} message
 * @return {String}
 */
Wrapper for template with a preformatted error message. The message is
understood to be a string, but could be HTML if needed

@param  {String} message
@return {String}
Wrapper for template with a preformatted error message . The message is understood to be a string but could be HTML if needed @param { String } message @return { String }
function errorPage(message) {
	return page(
		'Website broken',
		`<pre class="error">${message}</pre><p>Sorry about that ¯\\_(ツ)_/¯</p><p><a href="/">&larr; Go back</a></p>`
	)
}
function errorPage ( message ) { return page ( 'Website broken' , ` ${ message } \_ ) }
Wrapper for template with a preformatted error message.
Wrapper for template with a preformatted error message .