+checked(){ [ "$1" = "$2" ] || [ "$1" -eq "$2" ] && printf 'checked="checked"' 2>/dev/null; }
+selected(){ [ "$1" = "$2" ] || [ "$1" -eq "$2" ] && printf 'selected="selected"' 2>/dev/null; }
+
+yield_page() {
+ local class="$1" style="$2"
+ printf 'Content-Type: text/html; charset=utf-8\r\n\r\n'
+ { printf '
+ [html [head
+ [title Confetti]
+ [meta name="viewport" content="width=device-width"]
+ [link rel="stylesheet" type="text/css" href="/style.css"]
+ '
+ [ -n "$style" ] && printf '
+ [link rel="stylesheet" type="text/css" href="%s"]
+ ' "$style"
+ printf '
+ ] [body class="%s"
+ ' "$class"
+ cat
+ [ "$message" ] && printf '[p #message\n%s\n]' $(l10n "$message")
+ printf '] ]'
+ } \
+ | "${_EXEC}/cgilite/html-sh.sed"
+}