Module function reference
document
A reference entry for document
document document (string content[, string title]) ⇒ string
Creates a complete HTML5 document.
Example
YASS
$html = HTML::document("<p>Hello</p>", "Welcome")
Input: content="<p>Hello</p>", title="Welcome"
Output: <!DOCTYPE html><html><head><meta charset="utf-8"><title>Welcome</title></head><body><p>Hello</p></body></html>