theme_page(){
local page="$1" title="$2"
- title="$(HTML "${title:-"${page}"}")"
+ title="$(HTML "${title:-"${PAGE_TITLE:-"${page}"}"}")"
# Important! Web Server response including newline
printf "%s\r\n" "Content-Type: text/html; charset=utf-8" ""
cat <<-EOF
<!DOCTYPE HTML>
- <html><head>
+ <html${LANGUAGE:+ lang=\"${LANGUAGE}\"}><head>
$(theme_head)
<title>${title}</title>
</head><body id="$(HTML "${PATH_INFO}")">