popcorn :: ErrorTpl :: defaultinit
#
class ErrorTpl
super Template
#
var status: Int
#
var message: nullable String
redef fun rendering do add """
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>{{{message or else status}}}</title>
</head>
<body>
<h1>{{{status}}} {{{message or else ""}}}</h1>
</body>
</html>"""
end
lib/popcorn/popcorn.nit:76,1--98,3